]> git.itanic.dy.fi Git - linux-stable/commit
net: dsa: mt7530: fix handling of LLDP frames
authorArınç ÜNAL <arinc.unal@arinc9.com>
Sat, 17 Jun 2023 06:26:47 +0000 (09:26 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jun 2023 08:40:26 +0000 (09:40 +0100)
commit8332cf6fd7c7087dbc2067115b33979c9851bbc4
treea19a2cc752ab2c676ab2f750deee8961e6cfb357
parentd7c66073559386b836bded7cdc8b66ee5c049129
net: dsa: mt7530: fix handling of LLDP frames

LLDP frames are link-local frames, therefore they must be trapped to the
CPU port. Currently, the MT753X switches treat LLDP frames as regular
multicast frames, therefore flooding them to user ports. To fix this, set
LLDP frames to be trapped to the CPU port(s).

Fixes: b8f126a8d543 ("net-next: dsa: add dsa support for Mediatek MT7530 switch")
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mt7530.c
drivers/net/dsa/mt7530.h