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 (6):
  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
  pdump: report secondary process failures
  app/dumpcap: disable capture on the interface that failed

 app/dumpcap/main.c      |  10 +-
 lib/ethdev/rte_ethdev.c |   5 +
 lib/pdump/rte_pdump.c   | 242 ++++++++++++++++++++++++++++++----------
 3 files changed, 196 insertions(+), 61 deletions(-)

-- 
2.53.0

Reply via email to