]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mt7530: fix tagged frames pass-through in VLAN-unaware mode
authorDENG Qingfang <dqfext@gmail.com>
Tue, 14 Apr 2020 06:34:08 +0000 (14:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Apr 2020 20:32:05 +0000 (13:32 -0700)
commit40334039cdafa4e30b4d4f10bf2088ac9bb0ecb5
tree0433f83ca08ddd44d3e21f6a3b718246ba5ee5a4
parentb2422162db3dcaa8ec92486874c33ab8759e361c
net: dsa: mt7530: fix tagged frames pass-through in VLAN-unaware mode

In VLAN-unaware mode, the Egress Tag (EG_TAG) field in Port VLAN
Control register must be set to Consistent to let tagged frames pass
through as is, otherwise their tags will be stripped.

Fixes: aaf9e358e672 ("net: dsa: mediatek: add VLAN support for MT7530")
Signed-off-by: DENG Qingfang <dqfext@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: René van Dorst <opensource@vdorst.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mt7530.c
drivers/net/dsa/mt7530.h