Skip to content

pdump: fix capture on ports with hairpin queues

Stephen Hemminger dpdk-dev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ethdev: reject hairpin queue in add first Rx callbacklib/ethdev/rte_ethdev.c+5 -00 replies
2/4pdump: fix error code when adding callback failslib/pdump/rte_pdump.c+2 -20 replies
3/4pdump: skip hairpin queueslib/pdump/rte_pdump.c+21 -00 replies
4/4pdump: undo partial enable on failurelib/pdump/rte_pdump.c+72 -190 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] pdump: fix capture on ports with hairpin queues

This was reported on dpdk slack channel.

dpdk-dumpcap fails on a port with hairpin queues. The first attempt reports "Unknown error -22" and every later attempt fails with EEXIST until the application is restarted.

Several bugs combine: pdump tries to add callbacks to hairpin queues, the error is returned with the wrong sign, and a partially enabled capture is not undone. Also the first Rx callback API was missing the hairpin check the other callback APIs have.

Stephen Hemminger (4):
ethdev: reject hairpin queue in add first Rx callback
pdump: fix error code when adding callback fails
pdump: skip hairpin queues
pdump: undo partial enable on failure

 lib/ethdev/rte_ethdev.c |   5 ++
 lib/pdump/rte_pdump.c   | 112 +++++++++++++++++++++++++++++++++-------
 2 files changed, 98 insertions(+), 19 deletions(-)
Signature · 1 line
2.53.0