OSDN Git Service

8021q: use __vlan_hwaccel helpers
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Thu, 8 Nov 2018 23:18:03 +0000 (00:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Nov 2018 04:45:04 +0000 (20:45 -0800)
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_core.c

index 6308b54..5742504 100644 (file)
@@ -57,7 +57,7 @@ bool vlan_do_receive(struct sk_buff **skbp)
        }
 
        skb->priority = vlan_get_ingress_priority(vlan_dev, skb->vlan_tci);
-       skb->vlan_tci = 0;
+       __vlan_hwaccel_clear_tag(skb);
 
        rx_stats = this_cpu_ptr(vlan_dev_priv(vlan_dev)->vlan_pcpu_stats);