net: dsa: mt7530: drop untagged frames on VLAN-aware ports without PVID
authorDENG Qingfang <dqfext@gmail.com>
Fri, 6 Aug 2021 03:47:11 +0000 (11:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Aug 2021 11:07:39 +0000 (12:07 +0100)
commit8fbebef80107d779b8e356cf60323454a4099d76
tree9d2f1c0eaba3d28fb6ee3d98d1fe74ebdea8e53e
parent9b9311af4e8657be85bb1d083c531cfb6afb0d9c
net: dsa: mt7530: drop untagged frames on VLAN-aware ports without PVID

The driver currently still accepts untagged frames on VLAN-aware ports
without PVID. Use PVC.ACC_FRM to drop untagged frames in that case.

Signed-off-by: DENG Qingfang <dqfext@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mt7530.c
drivers/net/dsa/mt7530.h