]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: dsa: vsc73xx: start treating the BR_LEARNING flag
authorPawel Dembicki <paweldembicki@gmail.com>
Sat, 13 Jul 2024 21:16:18 +0000 (23:16 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 15 Jul 2024 13:55:16 +0000 (06:55 -0700)
commit259a7061c2f14bbf5845598f69ac63cdb77d6346
treed10707048f34caa3105018b973e4dae679877ade
parent6dfaaa27633711ba52c418d578b3a13b0c8bfd8d
net: dsa: vsc73xx: start treating the BR_LEARNING flag

This patch implements .port_pre_bridge_flags() and .port_bridge_flags(),
which are required for properly treating the BR_LEARNING flag. Also,
.port_stp_state_set() is tweaked and now disables learning for standalone
ports.

Disabling learning for standalone ports is required to avoid situations
where one port sees traffic originating from another, which could cause
packet drops.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://patch.msgid.link/20240713211620.1125910-13-paweldembicki@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/vitesse-vsc73xx-core.c