]> git.feebdaed.xyz Git - 0xmirror/dpdk.git/commit
pdump: fix race in disabling
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 12 Nov 2025 20:05:10 +0000 (12:05 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 19 Nov 2025 03:28:34 +0000 (04:28 +0100)
commit928f43e3f9c12bd1e8eacbbc3c63f07896b64d92
treea60878e7303b19f2d35f5bd6b254031cf8aa461c
parent22fc97ba1d67f18d10e29ace2f19f8c0d52534e3
pdump: fix race in disabling

There is a race where the request to disable pdump may get ahead
of the handling of pdump requests in dumpcap. The fix is to do
local removal of callbacks before forwarding same to secondary.

To reproduce:
   1. Start testpmd and start traffic
   2. Start dumpcap to capture
   3. Interrupt dumpcap with ^C

Testpmd will show missing response and dumpcap will show error:
EAL: Cannot find action: mp_pdump

Only reproducible if additional logging not enabled.

Fixes: c3ceb8742295 ("pdump: forward callback enable to secondary process")
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/pdump/rte_pdump.c