aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/tag_gswip.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2019-04-28 19:37:11 +0200
committerDavid S. Miller <davem@davemloft.net>2019-04-28 19:41:00 -0400
commit875138f81d71af3cfa80df57e32fe9efbc4f95bc (patch)
treea775c237567db87334b12f434323f484c3185a89 /net/dsa/tag_gswip.c
parentdsa: Add SPDX header to tag drivers. (diff)
downloadlinux-dev-875138f81d71af3cfa80df57e32fe9efbc4f95bc.tar.xz
linux-dev-875138f81d71af3cfa80df57e32fe9efbc4f95bc.zip
dsa: Move tagger name into its ops structure
Rather than keep a list to map a tagger ops to a name, place the name into the ops structure. This removes the hard coded list, a step towards making the taggers more dynamic. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> v2: Move name to end of structure, keeping the hot entries at the beginning. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/tag_gswip.c')
-rw-r--r--net/dsa/tag_gswip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dsa/tag_gswip.c b/net/dsa/tag_gswip.c
index cb6f82ffe5eb..d1c1e7db87b6 100644
--- a/net/dsa/tag_gswip.c
+++ b/net/dsa/tag_gswip.c
@@ -104,6 +104,7 @@ static struct sk_buff *gswip_tag_rcv(struct sk_buff *skb,
}
const struct dsa_device_ops gswip_netdev_ops = {
+ .name = "gwsip",
.xmit = gswip_tag_xmit,
.rcv = gswip_tag_rcv,
.overhead = GSWIP_RX_HEADER_LEN,