mlxsw: spectrum_switchdev: Update the mdb of mrouter port change
authorNogah Frankel <nogahf@mellanox.com>
Wed, 20 Sep 2017 14:15:14 +0000 (16:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Sep 2017 01:03:13 +0000 (18:03 -0700)
commit3ddda1178e41bbe26bb5c6ebf66ae3d0a87ac410
treeafd41bd477ad1c64a28aad1d37858d6a9f7148b1
parent3fba877cb68cfbc1826dd4abc7b1a8fe862adb2a
mlxsw: spectrum_switchdev: Update the mdb of mrouter port change

Whenever a port starts / stops being mrouter, update all the mdb entries
in the HW to flood / stop flooding mc packets there.
The change should happen only if the port is not in the mid. (If it is,
the mid should flood mc packets to this port anyway)

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