summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarshal Gohel2025-08-08 15:31:03 +0000
committerRobert Marko2025-10-16 09:46:07 +0000
commit2930c9dd2ad724ec358eaa1a73f86dc680fad0dd (patch)
treeaf545290081f7037e7201b522ade8f99a13d4bec
parente78f000869f1858b9bdf2a72daf2c7e27bfb4b82 (diff)
downloadopenwrt-2930c9dd2ad724ec358eaa1a73f86dc680fad0dd.tar.gz
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 <hg@simonwunderlich.de> Signed-off-by: Sven Eckelmann <se@simonwunderlich.de> Link: https://github.com/openwrt/openwrt/pull/20414 Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r--target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c1
1 files changed, 1 insertions, 0 deletions
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 38608734f3..3e698683bd 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;