diff options
author | Sean Wang <sean.wang@mediatek.com> | 2017-04-07 10:45:06 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-07 22:50:55 +0200 |
commit | 5cd8985a19090f2b0ce8700ae3ec19e06a4fc5e9 (patch) | |
tree | 43429762fa0a066e1d67b3aecd4e58b75ec65a1c /net/dsa/dsa.c | |
parent | dt-bindings: net: dsa: add Mediatek MT7530 binding (diff) | |
download | linux-5cd8985a19090f2b0ce8700ae3ec19e06a4fc5e9.tar.xz linux-5cd8985a19090f2b0ce8700ae3ec19e06a4fc5e9.zip |
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>
Diffstat (limited to 'net/dsa/dsa.c')
-rw-r--r-- | net/dsa/dsa.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 95d1a756202c..6cad15da5892 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c @@ -54,6 +54,9 @@ const struct dsa_device_ops *dsa_device_ops[DSA_TAG_LAST] = { #ifdef CONFIG_NET_DSA_TAG_QCA [DSA_TAG_PROTO_QCA] = &qca_netdev_ops, #endif +#ifdef CONFIG_NET_DSA_TAG_MTK + [DSA_TAG_PROTO_MTK] = &mtk_netdev_ops, +#endif [DSA_TAG_PROTO_NONE] = &none_ops, }; |