]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitc7f46cca8c73a44311e4164b9196b4d791f59ac7
tree77a096572899467117b58afe84a8c6b6e623e937
parent6a9a27d5397fc6c52f90c09ddab91e65053584aa
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: ded711c87a04 ("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