diff options
author | John Crispin <john@phrozen.org> | 2016-09-15 17:26:40 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-16 11:31:51 +0300 |
commit | cafdc45c949b9963cbfb8fe3a68d0ab16b0208ce (patch) | |
tree | ac9827ee9762a5edd72c25dc54c9e39fd1ad94c4 /net/dsa/dsa.c | |
parent | e5dcad290a7c62d1c856269dbd13e470e388b704 (diff) | |
download | linux-cafdc45c949b9963cbfb8fe3a68d0ab16b0208ce.tar.xz |
net-next: dsa: add Qualcomm tag RX/TX handler
Add support for the 2-bytes Qualcomm tag that gigabit switches such as
the QCA8337/N might insert when receiving packets, or that we need
to insert while targeting specific switch ports. The tag is inserted
directly behind the ethernet header.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: John Crispin <john@phrozen.org>
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 d8d267e9a872..66e31acfcad8 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_BRCM [DSA_TAG_PROTO_BRCM] = &brcm_netdev_ops, #endif +#ifdef CONFIG_NET_DSA_TAG_QCA + [DSA_TAG_PROTO_QCA] = &qca_netdev_ops, +#endif [DSA_TAG_PROTO_NONE] = &none_ops, }; |