linux/drivers/net/dsa
Jonas Gorski 2e7179c628 net: dsa: b53: do not set learning and unicast/multicast on up
When a port gets set up, b53 disables learning and enables the port for
flooding. This can undo any bridge configuration on the port.

E.g. the following flow would disable learning on a port:

$ ip link add br0 type bridge
$ ip link set sw1p1 master br0 <- enables learning for sw1p1
$ ip link set br0 up
$ ip link set sw1p1 up <- disables learning again

Fix this by populating dsa_switch_ops::port_setup(), and set up initial
config there.

Fixes: f9b3827ee6 ("net: dsa: b53: Support setting learning on port")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20250429201710.330937-12-jonas.gorski@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-05-07 19:30:35 -07:00
..
b53 net: dsa: b53: do not set learning and unicast/multicast on up 2025-05-07 19:30:35 -07:00
hirschmann net: dsa: use ethtool string helpers 2024-11-03 10:36:34 -08:00
microchip net: dsa: microchip: fix DCB apptrust configuration on KSZ88x3 2025-03-25 10:40:54 -07:00
mv88e6xxx net: dsa: mv88e6xxx: fix -ENOENT when deleting VLANs and MST is unsupported 2025-04-16 18:14:43 -07:00
ocelot net: dsa: felix: fix broken taprio gate states after clock jump 2025-04-29 14:44:34 -07:00
qca net: remove phylink_pcs .neg_mode boolean 2025-02-14 17:09:50 -08:00
realtek net: dsa: rtl8366rb: don't prompt users for LED control 2025-03-04 11:54:06 +01:00
sja1105 treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
xrs700x net: dsa: use ethtool string helpers 2024-11-03 10:36:34 -08:00
Kconfig dsa: mt7530: Utilize REGMAP_IRQ for interrupt handling 2025-03-04 17:14:23 -08:00
Makefile
bcm_sf2.c net: dsa: b53: do not set learning and unicast/multicast on up 2025-05-07 19:30:35 -07:00
bcm_sf2.h net: dsa: use ethtool string helpers 2024-11-03 10:36:34 -08:00
bcm_sf2_cfp.c net: dsa: use ethtool string helpers 2024-11-03 10:36:34 -08:00
bcm_sf2_regs.h
dsa_loop.c net: dsa: use ethtool string helpers 2024-11-03 10:36:34 -08:00
dsa_loop.h
dsa_loop_bdinfo.c
lan9303-core.c
lan9303.h
lan9303_i2c.c
lan9303_mdio.c
lantiq_gswip.c
lantiq_pce.h
mt7530-mdio.c
mt7530-mmio.c
mt7530.c net: dsa: mt7530: sync driver-specific behavior of MT7531 variants 2025-04-23 18:46:03 -07:00
mt7530.h dsa: mt7530: Utilize REGMAP_IRQ for interrupt handling 2025-03-04 17:14:23 -08:00
mv88e6060.c
mv88e6060.h
rzn1_a5psw.c net: dsa: rzn1_a5psw: Use of_get_available_child_by_name() 2025-02-07 13:43:55 +00:00
rzn1_a5psw.h
vitesse-vsc73xx-core.c
vitesse-vsc73xx-platform.c
vitesse-vsc73xx-spi.c
vitesse-vsc73xx.h