diff options
author | Andrew Lunn <andrew@lunn.ch> | 2019-04-28 19:37:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-28 19:41:01 -0400 |
commit | 056eed2fb071c11535527fc792bdfb985a9a3e26 (patch) | |
tree | 62541542170657f3ce61fae5f67aa53f25c60a1c /net/dsa/dsa.c | |
parent | f18bba50d24d014f22e439702c19b069d7e2b159 (diff) |
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 'net/dsa/dsa.c')
-rw-r--r-- | net/dsa/dsa.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 92b3cd129eb7..2da733dff86b 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c @@ -36,6 +36,7 @@ static struct sk_buff *dsa_slave_notag_xmit(struct sk_buff *skb, static const struct dsa_device_ops none_ops = { .name = "none", + .proto = DSA_TAG_PROTO_NONE, .xmit = dsa_slave_notag_xmit, .rcv = NULL, }; |