]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: rtl93xx: Trap BPDU management frames 20414/head
authorHarshal Gohel <hg@simonwunderlich.de>
Fri, 8 Aug 2025 15:31:03 +0000 (17:31 +0200)
committerRobert Marko <robimarko@gmail.com>
Thu, 16 Oct 2025 09:46:07 +0000 (11:46 +0200)
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>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c

index 38608734f3ca73c8dc0b9c685b6595255b283022..3e698683bd02aa6e7ef7562c55cab8e2b7f6a8ff 100644 (file)
@@ -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;