openwrt-6.x/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx
Sven Eckelmann 84b7057fe3 realtek: dsa: rtl931x: Fix port L2 table flushing
The DSA driver must flush the HW FDB when a port changes from
learning/forwarding to disabled/blocking/listening.

But the implementation for RTL931x was writing the port information
starting at bit 11 (bit 11 of the second 32-bit L2_TBL_FLUSH_CTRL
register). But this offset is the AGG_VID and not the port. The actual
position is 43 (bit 11 of the first register).

As result, the FDB was always only flushed for the port 0 and not for the
selected port.

Fixes: 9ed6097054 ("realtek: Add HW support for RTL931X for PIE, L2 and STP aging")
Signed-off-by: Sven Eckelmann <se@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/20422
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-10-16 16:35:20 +02:00
..
common.c realtek: dsa: Fix name of RTL93xx switch_ops 2025-10-12 12:49:49 +02:00
debugfs.c realtek: dsa: Keep HW specific mirror code in SoC helper 2025-10-03 19:25:26 +02:00
dsa.c realtek: dsa: rtl931x: Fix port L2 table flushing 2025-10-16 16:35:20 +02:00
Kconfig
Makefile
qos.c
rtl83xx.h realtek: rtl931x: Register support for trapping management frames 2025-08-26 23:44:08 +02:00
rtl838x.c realtek: dsa: Drop unused traffic_get helpers 2025-10-12 12:49:49 +02:00
rtl838x.h realtek: dsa: Add support for port isolation 2025-10-12 12:49:49 +02:00
rtl839x.c realtek: dsa: Drop unused traffic_get helpers 2025-10-12 12:49:49 +02:00
rtl930x.c realtek: dsa: Drop unused traffic_get helpers 2025-10-12 12:49:49 +02:00
rtl931x.c realtek: dsa: Drop unused traffic_get helpers 2025-10-12 12:49:49 +02:00
tc.c