aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/skbuff.c
diff options
context:
space:
mode:
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>2018-11-09 00:18:02 +0100
committerDavid S. Miller <davem@davemloft.net>2018-11-08 20:45:04 -0800
commitb1817524c028a5a5284f21358185c74790001e0e (patch)
tree73e2fc59f616e772428ad7ad61ee9cecd551f862 /net/core/skbuff.c
parentcxgb4: use __vlan_hwaccel helpers (diff)
downloadlinux-dev-b1817524c028a5a5284f21358185c74790001e0e.tar.xz
linux-dev-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.c2
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;