]> git.baikalelectronics.ru Git - kernel.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)
commit1b50a321db81361a74d8cd4f6189a65faea3285c
tree2f7692aa284870c148b9c90a2822d4ac4cf3d0f1
parent284142271ad887c9ad59fa612e57b914841c2e73
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