From 2930c9dd2ad724ec358eaa1a73f86dc680fad0dd Mon Sep 17 00:00:00 2001 From: Harshal Gohel Date: Fri, 8 Aug 2025 17:31:03 +0200 Subject: [PATCH] realtek: rtl93xx: Trap BPDU management frames BPDU frames like STP must be processed by each switch (bridge) which supports STP. It must not be forwarded to avoid confusing the STP state of other STP participants. It is essential to be an active participant of STP. The software bridge automatically takes care of forwarding the BPDUs to other ports when STP is disabled and the hardware switch should not interfere. Signed-off-by: Harshal Gohel Signed-off-by: Sven Eckelmann Link: https://github.com/openwrt/openwrt/pull/20414 Signed-off-by: Robert Marko --- target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c index 38608734f3c..3e698683bd0 100644 --- a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c +++ b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c @@ -529,6 +529,7 @@ static int rtl93xx_setup(struct dsa_switch *ds) rtl83xx_vlan_setup(priv); + rtldsa_setup_bpdu_traps(priv); rtldsa_setup_lldp_traps(priv); ds->configure_vlan_while_not_filtering = true; -- 2.47.3