]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 5 May 2020 10:32:22 +0000 (12:32 +0200)
commit43ba1144ae6fb2b8688cf47781eead15a92eb839
tree6990e6c2b9513bb67a24f7af755b5b82d0d5e85f
parentf8467019881d351ee98aef60c7bc621a1ea26959
net: dsa: mt7530: fix tagged frames pass-through in VLAN-unaware mode

BugLink: https://bugs.launchpad.net/bugs/1874111
[ Upstream commit e045124e93995fe01e42ed530003ddba5d55db4f ]

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: 83163f7dca56 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/dsa/mt7530.c
drivers/net/dsa/mt7530.h