summaryrefslogtreecommitdiff
path: root/net/dsa/dsa.c
diff options
context:
space:
mode:
authorWoojung Huh <Woojung.Huh@microchip.com>2017-05-31 23:19:06 +0300
committerDavid S. Miller <davem@davemloft.net>2017-06-01 03:56:31 +0300
commit8b8010fb7876e816300ddd60fa089e9ceb209f3e (patch)
treed872f6691574c44a152aa4a01a382091b7451db1 /net/dsa/dsa.c
parent6c21a2a65ded27ce49847339efe4e1373a2319e5 (diff)
downloadlinux-8b8010fb7876e816300ddd60fa089e9ceb209f3e.tar.xz
dsa: add support for Microchip KSZ tail tagging
Adding support for the Microchip KSZ switch family tail tagging. Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Woojung Huh <Woojung.Huh@microchip.com> 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 3288a80d4d6c..402459e73f33 100644
--- a/net/dsa/dsa.c
+++ b/net/dsa/dsa.c
@@ -49,6 +49,9 @@ const struct dsa_device_ops *dsa_device_ops[DSA_TAG_LAST] = {
#ifdef CONFIG_NET_DSA_TAG_EDSA
[DSA_TAG_PROTO_EDSA] = &edsa_netdev_ops,
#endif
+#ifdef CONFIG_NET_DSA_TAG_KSZ
+ [DSA_TAG_PROTO_KSZ] = &ksz_netdev_ops,
+#endif
#ifdef CONFIG_NET_DSA_TAG_LAN9303
[DSA_TAG_PROTO_LAN9303] = &lan9303_netdev_ops,
#endif