Skip to content
Commit 3d00827a authored by Svenning Sørensen's avatar Svenning Sørensen Committed by David S. Miller
Browse files

net: dsa: microchip: fix bridging with more than two member ports

Commit b3612ccd ("net: dsa: microchip: implement multi-bridge support")
plugged a packet leak between ports that were members of different bridges.
Unfortunately, this broke another use case, namely that of more than two
ports that are members of the same bridge.

After that commit, when a port is added to a bridge, hardware bridging
between other member ports of that bridge will be cleared, preventing
packet exchange between them.

Fix by ensuring that the Port VLAN Membership bitmap includes any existing
ports in the bridge, not just the port being added.

Fixes: b3612ccd

 ("net: dsa: microchip: implement multi-bridge support")
Signed-off-by: default avatarSvenning Sørensen <sss@secomea.com>
Tested-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5486f5bf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment