net: dsa: mt7530: fix handling of 802.1X PAE frames
authorArınç ÜNAL <arinc.unal@arinc9.com>
Sun, 13 Aug 2023 10:59:17 +0000 (13:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Aug 2023 11:29:33 +0000 (12:29 +0100)
commite94b590abfff2cdbf0bdaa7d9904364c8d480af5
tree7ddb4d4496cbc86e29125c0440d9ac830cdf8a70
parentcfceccca0157307318905907fd7a4d4231494de7
net: dsa: mt7530: fix handling of 802.1X PAE frames

802.1X PAE frames are link-local frames, therefore they must be trapped to
the CPU port. Currently, the MT753X switches treat 802.1X PAE frames as
regular multicast frames, therefore flooding them to user ports. To fix
this, set 802.1X PAE 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mt7530.c
drivers/net/dsa/mt7530.h