]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - net/sched/sch_cake.c
sch_cake: Use tc_skb_protocol() helper for getting packet protocol
[mirror_ubuntu-jammy-kernel.git] / net / sched / sch_cake.c
index acc9b9da985f81ffd9b485e082cf1781e6731ba2..a3b55e18df047e36bbceb0fe88cdb82f4a164f62 100644 (file)
@@ -1519,7 +1519,7 @@ static u8 cake_handle_diffserv(struct sk_buff *skb, u16 wash)
 {
        u8 dscp;
 
-       switch (skb->protocol) {
+       switch (tc_skb_protocol(skb)) {
        case htons(ETH_P_IP):
                dscp = ipv4_get_dsfield(ip_hdr(skb)) >> 2;
                if (wash && dscp)