summaryrefslogtreecommitdiffstats
path: root/include/net/dsa.h
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2019-04-28 19:37:14 +0200
committerDavid S. Miller <davem@davemloft.net>2019-04-29 01:41:01 +0200
commit056eed2fb071c11535527fc792bdfb985a9a3e26 (patch)
tree62541542170657f3ce61fae5f67aa53f25c60a1c /include/net/dsa.h
parentdsa: Add MODULE_LICENSE to tag drivers (diff)
downloadlinux-056eed2fb071c11535527fc792bdfb985a9a3e26.tar.xz
linux-056eed2fb071c11535527fc792bdfb985a9a3e26.zip
dsa: Add TAG protocol to tag ops
In order that we can match the tagging protocol a switch driver request to the tagger, we need to know what protocol the tagger supports. Add this information to the ops structure. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> v2 More tag protocol to end of structure to keep hot members 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 8f3d5e0825a2..720036f48fb3 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -70,6 +70,7 @@ struct dsa_device_ops {
int *offset);
unsigned int overhead;
const char *name;
+ enum dsa_tag_protocol proto;
};
#define DSA_TAG_DRIVER_ALIAS "dsa_tag-"