Skip to content

Commit 18077d2

Browse files
0xharshalhauke
authored andcommitted
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: openwrt#19571 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent 43dbc6d commit 18077d2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx

target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,8 @@ static int rtl93xx_setup(struct dsa_switch *ds)
529529

530530
rtl83xx_vlan_setup(priv);
531531

532+
rtldsa_setup_lldp_traps(priv);
533+
532534
ds->configure_vlan_while_not_filtering = true;
533535

534536
priv->r->l2_learning_setup();

0 commit comments

Comments
 (0)