summaryrefslogtreecommitdiffstats
path: root/include/net/dsa.h
diff options
context:
space:
mode:
authorAndrew Lunn2019-04-28 19:37:11 +0200
committerDavid S. Miller2019-04-29 01:41:00 +0200
commit875138f81d71af3cfa80df57e32fe9efbc4f95bc (patch)
treea775c237567db87334b12f434323f484c3185a89 /include/net/dsa.h
parentdsa: Add SPDX header to tag drivers. (diff)
downloadkernel-qcow2-linux-875138f81d71af3cfa80df57e32fe9efbc4f95bc.tar.gz
kernel-qcow2-linux-875138f81d71af3cfa80df57e32fe9efbc4f95bc.tar.xz
kernel-qcow2-linux-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 'include/net/dsa.h')
-rw-r--r--include/net/dsa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 0cfc2f828b87..801346e31e9b 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -56,6 +56,7 @@ struct dsa_device_ops {
int (*flow_dissect)(const struct sk_buff *skb, __be16 *proto,
int *offset);
unsigned int overhead;
+ const char *name;
};
struct dsa_switch_tree {