]> 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)
commit9de8d1a19213202c295d18d786dca6d1d0d40eed
treeb111d4eaa0e442f4b18f18e0e0b58a2443e5ac90
parent74ff1e24bc924fd4fcbb7b14360f7f3c4a76c40a
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