aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa.c
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2016-09-15 16:26:40 +0200
committerDavid S. Miller <davem@davemloft.net>2016-09-16 04:31:51 -0400
commitcafdc45c949b9963cbfb8fe3a68d0ab16b0208ce (patch)
treeac9827ee9762a5edd72c25dc54c9e39fd1ad94c4 /net/dsa/dsa.c
parentDocumentation: devicetree: add qca8k binding (diff)
downloadlinux-dev-cafdc45c949b9963cbfb8fe3a68d0ab16b0208ce.tar.xz
linux-dev-cafdc45c949b9963cbfb8fe3a68d0ab16b0208ce.zip
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.c3
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,
};