]> 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)
commit90388c14bc8601202a2f4bf49ff7496558757cf6
tree77a096572899467117b58afe84a8c6b6e623e937
parentd88aacda072df81bcecd7c2f1e4e2fb32606fb6f
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: 816d03dc72d9 ("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