[PATCH v1 net 0/1] net: mscc: ocelot: broadcast storm fixup

From: Colin Foster
Date: Wed Sep 22 2021 - 22:03:52 EST


Ocelot ports would still forward out ethernet broadcasts when they were
in the LEARNING or BLOCKING state. This is due to the
ocelot_get_bridge_fwd_mask, which would tell disabled ports to forward
packets out all FORWARDING ports. Broadcast storms would insue.

This patch restores the functionality of disabling forwarding for ports
that aren't in the FORWARDING state. No more broadcast storms.

Tested and verified on an in-development driver, and Vladimir has done
independent testing and verification on supported hardware.


Vladimir Oltean (1):
net: mscc: ocelot: fix forwarding from BLOCKING ports remaining
enabled

drivers/net/ethernet/mscc/ocelot.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

--
2.25.1