aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched
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/sched
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/sched')
-rw-r--r--net/sched/act_vlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/act_vlan.c b/net/sched/act_vlan.c
index ba677d54a7af..93fdaf707313 100644
--- a/net/sched/act_vlan.c
+++ b/net/sched/act_vlan.c
@@ -63,7 +63,7 @@ static int tcf_vlan_act(struct sk_buff *skb, const struct tc_action *a,
/* extract existing tag (and guarantee no hw-accel tag) */
if (skb_vlan_tag_present(skb)) {
tci = skb_vlan_tag_get(skb);
- skb->vlan_tci = 0;
+ __vlan_hwaccel_clear_tag(skb);
} else {
/* in-payload vlan tag, pop it */
err = __skb_vlan_pop(skb, &tci);