[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <35aee73f-171c-4c64-9144-ff97afd8801c@linux.dev>
Date: Fri, 2 May 2025 14:31:28 -0700
From: Martin KaFai Lau <martin.lau@...ux.dev>
To: Jordan Rife <jordan@...fe.io>
Cc: Aditi Ghag <aditi.ghag@...valent.com>,
Daniel Borkmann <daniel@...earbox.net>,
Willem de Bruijn <willemdebruijn.kernel@...il.com>,
Kuniyuki Iwashima <kuniyu@...zon.com>,
Alexei Starovoitov <alexei.starovoitov@...il.com>, netdev@...r.kernel.org,
bpf@...r.kernel.org
Subject: Re: [PATCH v7 bpf-next 1/7] bpf: udp: Make mem flags configurable
through bpf_iter_udp_realloc_batch
On 5/2/25 9:15 AM, Jordan Rife wrote:
> Prepare for the next patch which needs to be able to choose either
> GFP_USER or GFP_NOWAIT for calls to bpf_iter_udp_realloc_batch.
>
> Signed-off-by: Jordan Rife <jordan@...fe.io>
> Reviewed-by: Kuniyuki Iwashima <kuniyu@...zon.com>
> ---
> net/ipv4/udp.c | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
> index 2742cc7602bb..6a3c351aa06e 100644
> --- a/net/ipv4/udp.c
> +++ b/net/ipv4/udp.c
> @@ -3401,7 +3401,7 @@ struct bpf_udp_iter_state {
> };
>
> static int bpf_iter_udp_realloc_batch(struct bpf_udp_iter_state *iter,
> - unsigned int new_batch_sz);
> + unsigned int new_batch_sz, int flags);
I also made a minor change from "int flags" to "gfp_t flags".
Powered by blists - more mailing lists