diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2020-09-26 21:32:05 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-26 23:17:59 +0200 |
commit | 2e8cb1b3db384382c84cc5f765c821454640aac1 (patch) | |
tree | 7e40eb51a2c7b38b22283da0db28815ab626a76b /net/core | |
parent | net: dsa: tag_ocelot: use a short prefix on both ingress and egress (diff) | |
download | linux-2e8cb1b3db384382c84cc5f765c821454640aac1.tar.xz linux-2e8cb1b3db384382c84cc5f765c821454640aac1.zip |
net: dsa: make the .flow_dissect tagger callback return void
There is no tagger that returns anything other than zero, so just change
the return type appropriately.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/flow_dissector.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/flow_dissector.c b/net/core/flow_dissector.c index 29806eb765cf..13cc4c0a8863 100644 --- a/net/core/flow_dissector.c +++ b/net/core/flow_dissector.c @@ -932,8 +932,8 @@ bool __skb_flow_dissect(const struct net *net, int offset = 0; ops = skb->dev->dsa_ptr->tag_ops; - if (ops->flow_dissect && - !ops->flow_dissect(skb, &proto, &offset)) { + if (ops->flow_dissect) { + ops->flow_dissect(skb, &proto, &offset); hlen -= offset; nhoff += offset; } |