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)
commit1edc57e2b3d3bf8672bb1553dbd541cc94f54937
tree0e1b42ca6fa9b263db4d97e84b86c45cf1f0893f
parenta35f71f27a614aff106cc89b86168962bce2725f
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