Loading net/core/filter.c +3 −2 Original line number Diff line number Diff line Loading @@ -2836,8 +2836,9 @@ static int bpf_skb_net_shrink(struct sk_buff *skb, u32 len_diff) static u32 __bpf_skb_max_len(const struct sk_buff *skb) { return skb->dev ? skb->dev->mtu + skb->dev->hard_header_len : SKB_MAX_ALLOC; if (skb_at_tc_ingress(skb) || !skb->dev) return SKB_MAX_ALLOC; return skb->dev->mtu + skb->dev->hard_header_len; } static int bpf_skb_adjust_net(struct sk_buff *skb, s32 len_diff) Loading Loading
net/core/filter.c +3 −2 Original line number Diff line number Diff line Loading @@ -2836,8 +2836,9 @@ static int bpf_skb_net_shrink(struct sk_buff *skb, u32 len_diff) static u32 __bpf_skb_max_len(const struct sk_buff *skb) { return skb->dev ? skb->dev->mtu + skb->dev->hard_header_len : SKB_MAX_ALLOC; if (skb_at_tc_ingress(skb) || !skb->dev) return SKB_MAX_ALLOC; return skb->dev->mtu + skb->dev->hard_header_len; } static int bpf_skb_adjust_net(struct sk_buff *skb, s32 len_diff) Loading