diff options
author | Michał Mirosław | 2018-11-09 00:18:02 +0100 |
---|---|---|
committer | David S. Miller | 2018-11-08 20:45:04 -0800 |
commit | b1817524c028a5a5284f21358185c74790001e0e (patch) | |
tree | 73e2fc59f616e772428ad7ad61ee9cecd551f862 /net/sched | |
parent | 35c4a95d95287ffae90c111b861d755f1565dbc1 (diff) |
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.c | 2 |
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); |