]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_switchdev: Do not remove mrouter port from MDB's ports list
authorIdo Schimmel <idosch@mellanox.com>
Thu, 26 Apr 2018 08:46:29 +0000 (11:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 17:44:50 +0000 (13:44 -0400)
commit9d9bdba9769b1c4679fd1fa3f04edca86f35f77a
tree77a096572899467117b58afe84a8c6b6e623e937
parent2af5348548398ef42c3feb553bb0debaebc69183
mlxsw: spectrum_switchdev: Do not remove mrouter port from MDB's ports list

When IGMP snooping is enabled on a bridge, traffic forwarded by an MDB
entry should be sent to both ports member in the MDB's ports list and
mrouter ports.

In case a port needs to be removed from an MDB's ports list, but this
port is also configured as an mrouter port, then do not update the
device so that it will continue to forward traffic through that port.

Fix a copy-paste error that checked that IGMP snooping is enabled twice
instead of checking the port's mrouter state.

Fixes: cfc17f694e89 ("mlxsw: spectrum_switchdev: Consider mrouter status for mdb changes")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reported-by: Colin King <colin.king@canonical.com>
Reviewed-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c