net: dsa: tag_gswip: Add gswip to dsa_tag_protocol_to_str()
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 15 Sep 2018 12:08:49 +0000 (14:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Sep 2018 15:12:11 +0000 (08:12 -0700)
The gswip tag was missing in the dsa_tag_protocol_to_str() function, add it.

Fixes: 7969119293f5 ("net: dsa: Add Lantiq / Intel GSWIP tag support")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c

index 5f73e96..a69c179 100644 (file)
@@ -88,6 +88,9 @@ const char *dsa_tag_protocol_to_str(const struct dsa_device_ops *ops)
 #ifdef CONFIG_NET_DSA_TAG_EDSA
                [DSA_TAG_PROTO_EDSA] = "edsa",
 #endif
+#ifdef CONFIG_NET_DSA_TAG_GSWIP
+               [DSA_TAG_PROTO_GSWIP] = "gswip",
+#endif
 #ifdef CONFIG_NET_DSA_TAG_KSZ
                [DSA_TAG_PROTO_KSZ] = "ksz",
 #endif