Re: [PATCH bpf-next v5] libbpf: Expose API to consume one ring at a time

From: Hou Tao
Date: Fri Jul 28 2023 - 06:51:38 EST




On 7/28/2023 5:33 PM, Adam Sindelar wrote:
> We already provide ring_buffer__epoll_fd to enable use of external
> polling systems. However, the only API available to consume the ring
> buffer is ring_buffer__consume, which always checks all rings. When
> polling for many events, this can be wasteful.
>
> Signed-off-by: Adam Sindelar <adam@xxxxxxxxxxxx>

Acked-by: Hou Tao <houtao1@xxxxxxxxxx>