linux-yocto/drivers/net/dsa
Tristram Ha d5b0053b93 net: dsa: microchip: fix initial port flush problem
[ Upstream commit ad53f5f54f ]

The very first flush in any port will flush all learned addresses in all
ports.  This can be observed by unplugging the cable from one port while
additional ports are connected and dumping the fdb entries.

This problem is caused by the initially wrong value programmed to the
REG_SW_LUE_CTRL_1 register.  Setting SW_FLUSH_STP_TABLE and
SW_FLUSH_MSTP_TABLE bits does not have an immediate effect.  It is when
ksz9477_flush_dyn_mac_table() is called then the SW_FLUSH_STP_TABLE bit
takes effect and flushes all learned entries.  After that call both bits
are reset and so the next port flush will not cause such problem again.

Fixes: b987e98e50 ("dsa: add DSA switch driver for Microchip KSZ9477")
Signed-off-by: Tristram Ha <tristram.ha@microchip.com>
Link: https://patch.msgid.link/1718756202-2731-1-git-send-email-Tristram.Ha@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-05 09:08:27 +02:00
..
b53 net: dsa: b53: mmap: add phy ops 2023-04-26 11:24:03 +02:00
microchip net: dsa: microchip: fix initial port flush problem 2024-07-05 09:08:27 +02:00
mv88e6xxx net: dsa: mv88e6xxx: Fix number of databases for 88E6141 / 88E6341 2024-05-17 11:43:49 +02:00
sja1105 net: dsa: sja1105: fix broken backpressure in .port_fdb_dump 2021-08-18 08:57:00 +02:00
bcm_sf2_cfp.c net: dsa: bcm_sf2_cfp: fix an incorrect NULL check on list iterator 2022-04-15 14:18:21 +02:00
bcm_sf2_regs.h
bcm_sf2.c net: dsa: bcm_sf2: force pause link settings 2022-07-07 17:36:50 +02:00
bcm_sf2.h
dsa_loop_bdinfo.c
dsa_loop.c net: dsa: Fix possible memory leaks in dsa_loop_init() 2022-11-10 17:57:50 +01:00
dsa_loop.h
Kconfig
lan9303_i2c.c
lan9303_mdio.c net: dsa: lan9303: consequently nested-lock physical MDIO 2023-11-28 16:50:21 +00:00
lan9303-core.c net: dsa: lan9303: allow vid != 0 in port_fdb_{add|del} methods 2023-06-14 10:59:55 +02:00
lan9303.h
lantiq_gswip.c net: dsa: lantiq_gswip: Fix refcount leak in gswip_gphy_fw_list 2022-06-14 18:11:57 +02:00
lantiq_pce.h
Makefile
mt7530.c net: dsa: mt7530: fix trapping frames on non-MT7621 SoC MT7530 switch 2023-06-28 10:18:39 +02:00
mt7530.h
mv88e6060.c net: dsa: mv88e6060: prevent crash on an unused port 2022-08-25 11:18:29 +02:00
mv88e6060.h
qca8k.c
qca8k.h
realtek-smi-core.c
realtek-smi-core.h
rtl8366.c
rtl8366rb.c net: dsa: rtl8366rb: Fix off-by-one bug 2021-11-17 09:48:34 +01:00
vitesse-vsc73xx-core.c net: dsa: vsc73xx: Add null pointer check to vsc73xx_gpio_probe 2024-01-25 14:34:32 -08:00
vitesse-vsc73xx-platform.c
vitesse-vsc73xx-spi.c
vitesse-vsc73xx.h