Browse Source

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 <[email protected]>
Signed-off-by: Sharadanand Karanjkar <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19571
Signed-off-by: Hauke Mehrtens <[email protected]>
Harshal Gohel 5 months ago
parent
commit
18077d22e9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c

+ 2 - 0
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();