]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - include/net/pkt_sched.h
sched: consistently handle layer3 header accesses in the presence of VLANs
[mirror_ubuntu-focal-kernel.git] / include / net / pkt_sched.h
index 6a70845bd9ab00e3f3607fcf102d93c948ea6884..cee1c084e9f40859e285fd6ac225289a580a1c72 100644 (file)
@@ -128,17 +128,6 @@ static inline void qdisc_run(struct Qdisc *q)
        }
 }
 
-static inline __be16 tc_skb_protocol(const struct sk_buff *skb)
-{
-       /* We need to take extra care in case the skb came via
-        * vlan accelerated path. In that case, use skb->vlan_proto
-        * as the original vlan header was already stripped.
-        */
-       if (skb_vlan_tag_present(skb))
-               return skb->vlan_proto;
-       return skb->protocol;
-}
-
 /* Calculate maximal size of packet seen by hard_start_xmit
    routine of this device.
  */