[PATCH] dumpcap: fix mbuf pool ring type
Stephen Hemminger
stephen at networkplumber.org
Wed Nov 8 17:50:49 CET 2023
On Tue, 7 Nov 2023 18:38:32 +0100
Morten Brørup <mb at smartsharesystems.com> wrote:
> > If user decides to use a thread unsafe mempool, wouldn't it break in
> > every PMD as well.
>
> Yes, except if the application only uses one thread for packet processing. Then thread safety is not necessary.
>
If application only used single thread then single consumer pool would work fine
for dumpcap. Only the primary thread would ever allocate. But both secondary and
primary could be freeing mbuf.
More information about the dev
mailing list