]> asedeno.scripts.mit.edu Git - linux.git/commit
mlxsw: spectrum_switchdev: Flood all mc packets to mrouter ports
authorNogah Frankel <nogahf@mellanox.com>
Wed, 20 Sep 2017 14:15:13 +0000 (16:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Sep 2017 01:03:13 +0000 (18:03 -0700)
commit3fba877cb68cfbc1826dd4abc7b1a8fe862adb2a
tree2f7692aa284870c148b9c90a2822d4ac4cf3d0f1
parentbb5355b27c9da3786a2b5e1583c9d64f492ac7ad
mlxsw: spectrum_switchdev: Flood all mc packets to mrouter ports

When mc is enabled, whenever a mc packet doesn't hit any mdb entry it is
being flood to the ports marked as mrouters. However, all mc packets should
be flooded to them even if they match an entry in the mdb.
This patch adds the mrouter ports to every mdb entry that is being written
to the HW.

Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c