[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <da0e43ef-4861-4541-951d-8d576fbaa069@linux.dev>
Date: Mon, 7 Apr 2025 22:23:47 -0700
From: Martin KaFai Lau <martin.lau@...ux.dev>
To: Jordan Rife <jordan@...fe.io>
Cc: Kuniyuki Iwashima <kuniyu@...zon.com>, aditi.ghag@...valent.com,
bpf@...r.kernel.org, daniel@...earbox.net, netdev@...r.kernel.org,
willemdebruijn.kernel@...il.com
Subject: Re: [RFC PATCH bpf-next 2/3] bpf: udp: Avoid socket skips and repeats
during iteration
On 4/7/25 7:39 PM, Jordan Rife wrote:
> 3) If vmalloc fails, propagate ENOMEM up to userspace and stop
> iteration instead of making the tradeoff of possibly repeating or
> skipping sockets. seq_read can already return ENOMEM in some cases, so
> IMO this feels more correct. WDYT?
Agree that this is better.
The stop() may need to take care of the start()/next() may fail. Take a look at
the bpf_seq_read() in bpf_iter.c. Please check.
Powered by blists - more mailing lists