]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Implement trust vf ndo
authorMohamad Haj Yahia <mohamad@mellanox.com>
Tue, 3 May 2016 14:14:04 +0000 (17:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 18:04:49 +0000 (14:04 -0400)
commit357c3f02587fcff945b74c77e2a226bce7f7c27b
tree0e1b42ca6fa9b263db4d97e84b86c45cf1f0893f
parentdc556346e4d4a152f0e4aaa39796d6a14c57f413
net/mlx5: E-Switch, Implement trust vf ndo

- Add support to configure trusted vf attribute through trust_vf_ndo.

- Upon VF trust setting change we update vport context to refresh
 allmulti/promisc or any trusted vf attributes that we didn't trust the
 VF for before.

- Lock the eswitch state lock on vport event in order to synchronise the
 vport context updates , this will prevent contention with vport trust
 setting change which will trigger vport mac list update.

Signed-off-by: Mohamad Haj Yahia <mohamad@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h