[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <d476d856-6d42-ca7b-54da-cd2219952854@iogearbox.net>
Date: Fri, 11 Dec 2020 00:30:29 +0100
From: Daniel Borkmann <daniel@...earbox.net>
To: Magnus Karlsson <magnus.karlsson@...il.com>,
magnus.karlsson@...el.com, bjorn.topel@...el.com, ast@...nel.org,
netdev@...r.kernel.org
Cc: bpf@...r.kernel.org, jonathan.lemon@...il.com,
maciej.fijalkowski@...el.com, maciejromanfijalkowski@...il.com
Subject: Re: [PATCH bpf-next v2] samples/bpf: fix possible hang in xdpsock
with multiple threads
On 12/10/20 5:34 PM, Magnus Karlsson wrote:
> From: Magnus Karlsson <magnus.karlsson@...el.com>
>
> Fix a possible hang in xdpsock that can occur when using multiple
> threads. In this case, one or more of the threads might get stuck in
> the while-loop in tx_only after the user has signaled the main thread
> to stop execution. In this case, no more Tx packets will be sent, so a
> thread might get stuck in the aforementioned while-loop. Fix this by
> introducing a test inside the while-loop to check if the benchmark has
> been terminated. If so, return from the function.
>
> Fixes: cd9e72b6f210 ("samples/bpf: xdpsock: Add option to specify batch size")
> Signed-off-by: Magnus Karlsson <magnus.karlsson@...el.com>
Applied, thanks!
Powered by blists - more mailing lists