[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5efb2093-537e-0f7d-beef-d32c02ec4a3d@iogearbox.net>
Date: Mon, 16 Oct 2023 13:56:24 +0200
From: Daniel Borkmann <daniel@...earbox.net>
To: John Fastabend <john.fastabend@...il.com>,
Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
Jakub Kicinski <kuba@...nel.org>
Cc: netdev@...r.kernel.org, bpf@...r.kernel.org,
"David S. Miller" <davem@...emloft.net>, Björn Töpel
<bjorn@...nel.org>, Alexei Starovoitov <ast@...nel.org>,
Andrii Nakryiko <andrii@...nel.org>, Eric Dumazet <edumazet@...gle.com>,
Hao Luo <haoluo@...gle.com>, Jesper Dangaard Brouer <hawk@...nel.org>,
Jiri Olsa <jolsa@...nel.org>, Jonathan Lemon <jonathan.lemon@...il.com>,
KP Singh <kpsingh@...nel.org>,
Maciej Fijalkowski <maciej.fijalkowski@...el.com>,
Magnus Karlsson <magnus.karlsson@...el.com>,
Martin KaFai Lau <martin.lau@...ux.dev>, Paolo Abeni <pabeni@...hat.com>,
Song Liu <song@...nel.org>, Stanislav Fomichev <sdf@...gle.com>,
Thomas Gleixner <tglx@...utronix.de>, Yonghong Song
<yonghong.song@...ux.dev>, Toke Høiland-Jørgensen
<toke@...hat.com>
Subject: Re: [PATCH bpf-next -v4] net: Add a warning if NAPI cb missed
xdp_do_flush().
Hi Sebastian,
On 10/11/23 6:42 AM, John Fastabend wrote:
> Sebastian Andrzej Siewior wrote:
>> 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
>> creates a warning if one of the functions had a non-empty list.
>> Hide everything behind CONFIG_DEBUG_NET.
>>
>> Suggested-by: Jesper Dangaard Brouer <hawk@...nel.org>
>> Reviewed-by: Toke Høiland-Jørgensen <toke@...hat.com>
>> Acked-by: Jakub Kicinski <kuba@...nel.org>
>> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
>
> LGTM.
>
> Acked-by: John Fastabend <john.fastabend@...il.com>
Do you have a chance to send a v5 rebase? It does not apply to bpf-next.
Other than that, the patch lgtm.
Thanks,
Daniel
Powered by blists - more mailing lists