From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: Stephen Hemminger <stephen@networkplumber.org>
Subject: [PATCH v4 0/8] pdump: fix error handling on failed enable
Date: Wed, 2 Dec 2026 10:07:33 -0800 [thread overview]
Message-ID: <20261202180820.4107462-1-stephen@networkplumber.org> (raw)
In-Reply-To: <20261028141750.310963-1-stephen@networkplumber.org>
Capturing on a port that has a hairpin queue does not work, and it
fails in a way that leaves callbacks referencing a ring the client is
about to free. Fixing that turned up weak error handling throughout
pdump enable, and two problems in the IPC underneath it: a broadcast
cannot distinguish a process that does not implement a feature from
one that has hung, and a request to a primary with no handler for it
does not fail.
The ethdev and EAL patches come first since the pdump fixes depend on
them. The EAL change and the pdump error propagation have to be
backported together.
v4 - fix test failure in CI (no huge)
Stephen Hemminger (8):
ethdev: reject hairpin queue in add first Rx callback
pdump: fix error code when adding callback fails
pdump: validate queues before installing callbacks
pdump: release BPF filter on error
eal: fix IPC request when no handler is registered
test/mp: check request with no registered handler
pdump: report secondary process failures
test/pdump: check secondary process result
app/test/test_mp_secondary.c | 85 ++++++++-
app/test/test_pdump.c | 17 +-
lib/eal/common/eal_common_proc.c | 55 ++++--
lib/ethdev/rte_ethdev.c | 5 +
lib/pdump/rte_pdump.c | 306 ++++++++++++++++++++++++-------
5 files changed, 383 insertions(+), 85 deletions(-)
--
2.53.0
next prev parent reply other threads:[~2026-12-02 18:08 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-28 14:16 [PATCH 0/4] pdump: fix capture on ports with hairpin queues Stephen Hemminger
2026-10-28 14:16 ` [PATCH 1/4] ethdev: reject hairpin queue in add first Rx callback Stephen Hemminger
2026-10-28 14:16 ` [PATCH 2/4] pdump: fix error code when adding callback fails Stephen Hemminger
2026-10-28 14:16 ` [PATCH 3/4] pdump: skip hairpin queues Stephen Hemminger
2026-10-28 14:16 ` [PATCH 4/4] pdump: undo partial enable on failure Stephen Hemminger
2026-11-27 21:07 ` [PATCH v2 0/6] pdump: fix bugs related to hairpin queues Stephen Hemminger
2026-11-27 21:07 ` [PATCH v2 1/6] ethdev: reject hairpin queue in add first Rx callback Stephen Hemminger
2026-11-27 21:07 ` [PATCH v2 2/6] pdump: fix error code when adding callback fails Stephen Hemminger
2026-11-27 21:07 ` [PATCH v2 3/6] pdump: validate queues before installing callbacks Stephen Hemminger
2026-11-27 21:07 ` [PATCH v2 4/6] pdump: release BPF filter on error Stephen Hemminger
2026-11-27 21:07 ` [PATCH v2 5/6] pdump: report secondary process failures Stephen Hemminger
2026-11-27 21:07 ` [PATCH v2 6/6] app/dumpcap: disable capture on the interface that failed Stephen Hemminger
2026-12-01 19:31 ` [PATCH v3 0/8] pdump: fix error handling on failed enable Stephen Hemminger
2026-12-01 19:31 ` [PATCH v3 1/8] ethdev: reject hairpin queue in add first Rx callback Stephen Hemminger
2026-12-01 19:31 ` [PATCH v3 2/8] pdump: fix error code when adding callback fails Stephen Hemminger
2026-12-01 19:31 ` [PATCH v3 3/8] pdump: validate queues before installing callbacks Stephen Hemminger
2026-12-01 19:31 ` [PATCH v3 4/8] pdump: release BPF filter on error Stephen Hemminger
2026-12-01 19:31 ` [PATCH v3 5/8] eal: fix IPC request when no handler is registered Stephen Hemminger
2026-12-01 19:31 ` [PATCH v3 6/8] test/mp: check request with no registered handler Stephen Hemminger
2026-12-01 19:31 ` [PATCH v3 7/8] pdump: report secondary process failures Stephen Hemminger
2026-12-01 19:31 ` [PATCH v3 8/8] test/pdump: check secondary process result Stephen Hemminger
2026-12-02 18:07 ` Stephen Hemminger [this message]
2026-12-02 18:07 ` [PATCH v4 1/8] ethdev: reject hairpin queue in add first Rx callback Stephen Hemminger
2026-12-02 18:07 ` [PATCH v4 2/8] pdump: fix error code when adding callback fails Stephen Hemminger
2026-12-02 18:07 ` [PATCH v4 3/8] pdump: validate queues before installing callbacks Stephen Hemminger
2026-12-02 18:07 ` [PATCH v4 4/8] pdump: release BPF filter on error Stephen Hemminger
2026-12-02 18:07 ` [PATCH v4 5/8] eal: fix IPC request when no handler is registered Stephen Hemminger
2026-12-02 18:07 ` [PATCH v4 6/8] test/mp: check request with no registered handler Stephen Hemminger
2026-12-02 18:07 ` [PATCH v4 7/8] pdump: report secondary process failures Stephen Hemminger
2026-12-02 18:07 ` [PATCH v4 8/8] test/pdump: check secondary process result Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261202180820.4107462-1-stephen@networkplumber.org \
--to=stephen@networkplumber.org \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox