]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: rtl93xx: Trap LLDP management frames 19571/head
authorHarshal Gohel <hg@simonwunderlich.de>
Fri, 8 Aug 2025 15:31:03 +0000 (17:31 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 26 Aug 2025 21:44:08 +0000 (23:44 +0200)
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@simonwunderlich.de>
Signed-off-by: Sharadanand Karanjkar <sk@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/19571
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c

index 4dbf3d29ffac9f5d61b3f65fb4f38844fdf8b4dc..a30c681c9a9834f52469cb1c1ddb9ecc8dd78648 100644 (file)
@@ -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();