[openwrt/openwrt] realtek: rtl93xx: Trap LLDP management frames

LEDE Commits lede-commits at lists.infradead.org
Tue Aug 26 14:45:21 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/18077d22e9754cdff64825ef81eb66bdd5fa58fb

commit 18077d22e9754cdff64825ef81eb66bdd5fa58fb
Author: Harshal Gohel <hg at simonwunderlich.de>
AuthorDate: Fri Aug 8 17:31:03 2025 +0200

    realtek: rtl93xx: Trap LLDP management frames
    
    LLDP packets must be transmitted on a single port and trapped on a port of
    a device which understands LLDP. It must not forward it to other ports to
    avoid confusing neighbor information on connected devices.
    
    Signed-off-by: Harshal Gohel <hg at simonwunderlich.de>
    Signed-off-by: Sharadanand Karanjkar <sk at simonwunderlich.de>
    Link: https://github.com/openwrt/openwrt/pull/19571
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c | 2 ++
 1 file changed, 2 insertions(+)

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 4dbf3d29ff..a30c681c9a 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,8 @@ static int rtl93xx_setup(struct dsa_switch *ds)
 
 	rtl83xx_vlan_setup(priv);
 
+	rtldsa_setup_lldp_traps(priv);
+
 	ds->configure_vlan_while_not_filtering = true;
 
 	priv->r->l2_learning_setup();




More information about the lede-commits mailing list