Re: [PATCH bpf-next] bpf: add 'BPF_RB_MAY_WAKEUP' flag

From: Song Liu
Date: Mon Mar 29 2021 - 12:06:17 EST




> On Mar 28, 2021, at 9:10 AM, Pedro Tammela <pctammela@xxxxxxxxx> wrote:
>
> The current way to provide a no-op flag to 'bpf_ringbuf_submit()',
> 'bpf_ringbuf_discard()' and 'bpf_ringbuf_output()' is to provide a '0'
> value.
>
> A '0' value might notify the consumer if it already caught up in processing,
> so let's provide a more descriptive notation for this value.
>
> Signed-off-by: Pedro Tammela <pctammela@xxxxxxxxxxxx>

Acked-by: Song Liu <songliubraving@xxxxxx>