net-next: dsa: add Mediatek tag RX/TX handler
authorSean Wang <sean.wang@mediatek.com>
Fri, 7 Apr 2017 08:45:06 +0000 (16:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Apr 2017 20:50:55 +0000 (13:50 -0700)
commit5cd8985a19090f2b0ce8700ae3ec19e06a4fc5e9
tree43429762fa0a066e1d67b3aecd4e58b75ec65a1c
parentc898693a5a79c518255be91049be1e54dfab9f1f
net-next: dsa: add Mediatek tag RX/TX handler

Add the support for the 4-bytes tag for DSA port distinguishing inserted
allowing receiving and transmitting the packet via the particular port.
The tag is being added after the source MAC address in the ethernet
header.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Landen Chao <Landen.Chao@mediatek.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dsa.h
net/dsa/Kconfig
net/dsa/Makefile
net/dsa/dsa.c
net/dsa/dsa_priv.h
net/dsa/tag_mtk.c [new file with mode: 0644]