From: Hauke Mehrtens Date: Sat, 15 Sep 2018 12:08:49 +0000 (+0200) Subject: net: dsa: tag_gswip: Add gswip to dsa_tag_protocol_to_str() X-Git-Tag: v5.4-rc1~2266^2~362^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=711ddb625cf051ef980766b0f8887db93274a4f4;p=platform%2Fkernel%2Flinux-rpi.git net: dsa: tag_gswip: Add gswip to dsa_tag_protocol_to_str() 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 Signed-off-by: David S. Miller --- diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 5f73e96cc9e6..a69c1790bbfc 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c @@ -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