]> 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)
commit002b084bed6ca25ab0bfe199187aa2f805e177c6
treeafd41bd477ad1c64a28aad1d37858d6a9f7148b1
parent1b50a321db81361a74d8cd4f6189a65faea3285c
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