]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit00a3a19f990fbb6c9f32e3ac6e5f4a388a910742
treeafd41bd477ad1c64a28aad1d37858d6a9f7148b1
parent36d1b7c8f062d1c45921f012089edf5ad55491e9
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