From aced3b0fadc0320d2dcde4bf6772a8dd33747b2f Mon Sep 17 00:00:00 2001 From: Cosmin Tanislav Date: Thu, 16 May 2024 10:52:16 +0300 Subject: [PATCH] Revert "ANDROID: net: bpf: permit redirect from ingress L3 to egress L2 devices at near max mtu" This reverts commit 69eb478ff932476b208d2e7e97137ced5665fa04. --- net/core/filter.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/core/filter.c b/net/core/filter.c index 183e281a4820..912a4cfb4384 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -2281,8 +2281,6 @@ 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; } -- 2.20.1