OSDN Git Service

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)
commitf0af34317f4ba30794a19fd6ad7e30e801d53b07
tree38355dd87eb42f9af3effe95f5b8b6385b1bede9
parent83163f7dca5684816d01c8ccf4857aa74801e7b7
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