]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Implement promiscuous rx modes vf request handling
authorMohamad Haj Yahia <mohamad@mellanox.com>
Tue, 3 May 2016 14:14:03 +0000 (17:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 18:04:48 +0000 (14:04 -0400)
commitdc556346e4d4a152f0e4aaa39796d6a14c57f413
treeb111d4eaa0e442f4b18f18e0e0b58a2443e5ac90
parentf6d68f9fa5a80748eb81f67be5b871b3a14f5e4a
net/mlx5: E-Switch, Implement promiscuous rx modes vf request handling

Add promisc_change as a trigger to vport context change event.
Add set vport promisc/allmulti functions to add vport to promiscuous
flowtable rules.
Upon promisc/allmulti rx mode vf request add the vport to
the relevant promiscuous group (Allmulti/Promisc group) so the relevant
traffic will be forwarded to it.
Upon allmulti vf request add the vport to each existing multicast fdb
rule.
Upon adding/removing mcast address from a vport, update all other
allmulti vports.

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/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h