diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2018-11-09 00:18:02 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-08 20:45:04 -0800 |
commit | b1817524c028a5a5284f21358185c74790001e0e (patch) | |
tree | 73e2fc59f616e772428ad7ad61ee9cecd551f862 /net/core/skbuff.c | |
parent | 35c4a95d95287ffae90c111b861d755f1565dbc1 (diff) | |
download | lwn-b1817524c028a5a5284f21358185c74790001e0e.tar.gz lwn-b1817524c028a5a5284f21358185c74790001e0e.zip |
net/core: use __vlan_hwaccel helpers
This removes assumptions about VLAN_TAG_PRESENT bit.
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r-- | net/core/skbuff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 5cb4b3440153..396fcb3baad0 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -5166,7 +5166,7 @@ int skb_vlan_pop(struct sk_buff *skb) int err; if (likely(skb_vlan_tag_present(skb))) { - skb->vlan_tci = 0; + __vlan_hwaccel_clear_tag(skb); } else { if (unlikely(!eth_type_vlan(skb->protocol))) return 0; |