]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/sched/sch_api.c
net: sched: fix skb->protocol use in case of accelerated vlan path
[mirror_ubuntu-artful-kernel.git] / net / sched / sch_api.c
index 76f402e05bd6f7a5ea50653629855039e6940d71..243b7d169d6183f662ab7f30d0e93492b29e79e3 100644 (file)
@@ -1807,7 +1807,7 @@ done:
 int tc_classify_compat(struct sk_buff *skb, const struct tcf_proto *tp,
                       struct tcf_result *res)
 {
-       __be16 protocol = skb->protocol;
+       __be16 protocol = tc_skb_protocol(skb);
        int err;
 
        for (; tp; tp = rcu_dereference_bh(tp->next)) {