From 18077d22e9754cdff64825ef81eb66bdd5fa58fb Mon Sep 17 00:00:00 2001 From: Harshal Gohel Date: Fri, 8 Aug 2025 17:31:03 +0200 Subject: [PATCH] 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 Signed-off-by: Sharadanand Karanjkar Link: https://github.com/openwrt/openwrt/pull/19571 Signed-off-by: Hauke Mehrtens --- 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 4dbf3d29ffa..a30c681c9a9 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(); -- 2.47.2