]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mediatek: combine MediaTek tag with VLAN tag
authorSean Wang <sean.wang@mediatek.com>
Fri, 15 Dec 2017 04:47:01 +0000 (12:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2017 15:31:54 +0000 (10:31 -0500)
commite0c9bc710a7b2994be45f10d103a825e83b70505
tree38355dd87eb42f9af3effe95f5b8b6385b1bede9
parent2d5d4391d6ef8ad141dbdda6208f3d06dce809c6
net: dsa: mediatek: combine MediaTek tag with VLAN tag

In order to let MT7530 switch can recognize well those egress packets
having both special tag and VLAN tag, the information about the special
tag should be carried on the existing VLAN tag. On the other hand, it's
unnecessary for extra handling for ingress packets when VLAN tag is
present since it is able to put the VLAN tag after the special tag and
then follow the existing way to parse.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/tag_mtk.c