summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarshal Gohel2025-08-08 15:31:03 +0000
committerHauke Mehrtens2025-08-26 21:44:08 +0000
commit18077d22e9754cdff64825ef81eb66bdd5fa58fb (patch)
tree1d33e7a7ed03232c2370eb10273da6a047c21422
parent43dbc6d4d65cdc0ae80eb074aff5b311608dcb24 (diff)
downloadopenwrt-18077d22e9754cdff64825ef81eb66bdd5fa58fb.tar.gz
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@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>
-rw-r--r--target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c2
1 files changed, 2 insertions, 0 deletions
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();