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