[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <77957459-cd64-4d7e-a503-829a1cf892c9@linux.dev>
Date: Fri, 2 May 2025 14:22:42 -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>, bpf@...r.kernel.org,
netdev@...r.kernel.org
Subject: Re: [PATCH v7 bpf-next 4/7] bpf: udp: Use bpf_udp_iter_batch_item for
bpf_udp_iter_state batch items
On 5/2/25 9:15 AM, Jordan Rife wrote:
> @@ -3596,8 +3600,8 @@ static void bpf_iter_udp_put_batch(struct bpf_udp_iter_state *iter)
> {
> unsigned int cur_sk = iter->cur_sk;
>
> - while (cur_sk < iter->end_sk)
> - sock_put(iter->batch[cur_sk++]);
> + while (iter->cur_sk < iter->end_sk)
I fixed this to "while (cur_sk < iter->end_sk)". Not that matters since the next
patch 5 fixed itself but it is better to keep this patch clean.
> + sock_put(iter->batch[cur_sk++].sk);
> }
Powered by blists - more mailing lists