From: Harshal Gohel Date: Fri, 8 Aug 2025 15:31:03 +0000 (+0200) Subject: realtek: rtl93xx: Trap LLDP management frames X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F19571%2Fhead;p=thirdparty%2Fopenwrt.git 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 --- 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();