kernel: Fix cake patch for kernel 4.19.138
[openwrt/staging/jow.git] / target / linux / generic / backport-4.19 / 380-v5.3-net-sched-Introduce-act_ctinfo-action.patch
index a680402f266232ee95919a09c85c16517c793b96..cf7687b451cf88b7507e8317fe212738f629b0fb 100644 (file)
@@ -336,13 +336,13 @@ Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
 +      action = READ_ONCE(ca->tcf_action);
 +
 +      wlen = skb_network_offset(skb);
-+      if (tc_skb_protocol(skb) == htons(ETH_P_IP)) {
++      if (skb_protocol(skb, true) == htons(ETH_P_IP)) {
 +              wlen += sizeof(struct iphdr);
 +              if (!pskb_may_pull(skb, wlen))
 +                      goto out;
 +
 +              proto = NFPROTO_IPV4;
-+      } else if (tc_skb_protocol(skb) == htons(ETH_P_IPV6)) {
++      } else if (skb_protocol(skb, true) == htons(ETH_P_IPV6)) {
 +              wlen += sizeof(struct ipv6hdr);
 +              if (!pskb_may_pull(skb, wlen))
 +                      goto out;