Subject: Re: [PATCH bpf-next] net: Add a warning if NAPI cb missed xdp_do_flush().

From: Toke Høiland-Jørgensen <[email-masked]>
Date: Fri, 29 Sep 2023 19:52:00 +0200

Sebastian Andrzej Siewior <[email-masked]> writes:

> A few drivers were missing a xdp_do_flush() invocation after
> XDP_REDIRECT.
>
> Add three helper functions each for one of the per-CPU lists. Return
> true if the per-CPU list is non-empty and flush the list.
> Add xdp_do_check_flushed() which invokes each helper functions and
> creats a warning if one of the functions had a non-empty list.
> Hide everything behind CONFIG_DEBUG_NET.
>
> Suggested-by: Jesper Dangaard Brouer <[email-masked]>
> Signed-off-by: Sebastian Andrzej Siewior <[email-masked]>
> ---
>
> This is follow-up to
> 	https://lore.kernel.org/all/[email-masked]
>
> It has been compile tested.

Both with and without CONFIG_DEBUG_NET enabled, I trust? ;)

Anyway, LGTM!

Reviewed-by: Toke Høiland-Jørgensen <[email-masked]>