Skip to content

Wireshark external capture for DPDK

Stephen Hemminger dpdk-dev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v6 Latest5 patches 0 repliesNew

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5pcapng: extend interface statisticsapp/dumpcap/main.c app/test/test_pcapng.c doc/guides/rel_notes/release_26_11.rst +2 more+60 -290 replies
2/5capture: infrastructure wireshark packet captureMAINTAINERS doc/guides/rel_notes/release_26_11.rst lib/capture/capture.c +4 more+1221 -00 replies
3/5test: add test for capture hooksMAINTAINERS app/test/meson.build app/test/test_capture.c+515 -00 replies
4/5usertools/dpdk-wireshark-extcap.py: script for external capturedoc/guides/rel_notes/release_26_11.rst doc/guides/tools/index.rst doc/guides/tools/wireshark_extcap.rst +1 more+520 -00 replies
5/5usertools/dpdk-dumpcap: add script for file captureMAINTAINERS doc/guides/rel_notes/release_26_11.rst usertools/dpdk-dumpcap.py+428 -00 replies

Reviews trailers per patch

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

Read the v6 thread

Cover letter [PATCH v6 0/5] Wireshark external capture for DPDK

This series adds live packet capture from a running DPDK primary over the telemetry socket. A new capture library installs Rx/Tx callbacks on an ethdev port and writes pcapng to a caller-supplied path or FIFO, with an optional libpcap filter and per-queue selection. No application changes are needed beyond linking the library.

Two front ends use it: a Wireshark extcap plugin that makes each DPDK port appear in the Wireshark interface list, and a dpdk-dumpcap.py for file capture without a secondary process.

The pcapng interface-statistics block gains a filter-accepted count, which changes the rte_pcapng_write_stats() signature.

dpdk-dumpcap.py is not installed yet, since the name would shadow the existing C dpdk-dumpcap.The long term plan is to remove pdump and old dumpcap code and only support this new code.
Will take several releases to stablize first.

Stephen Hemminger (5):
pcapng: extend interface statistics
capture: infrastructure wireshark packet capture
test: add test for capture hooks usertools/dpdk-wireshark-extcap.py: script for external capture usertools/dpdk-dumpcap: add script for file capture

 MAINTAINERS                            |    4 +
 app/dumpcap/main.c                     |   16 +-
 app/test/meson.build                   |    1 +
 app/test/test_capture.c                |  512 ++++++++++++
 app/test/test_pcapng.c                 |    6 +-
 doc/guides/rel_notes/release_26_11.rst |   11 +
 doc/guides/tools/index.rst             |    1 +
 doc/guides/tools/wireshark_extcap.rst  |  144 ++++
 lib/capture/capture.c                  | 1032 ++++++++++++++++++++++++
 lib/capture/capture_impl.h             |   56 ++
 lib/capture/filter.c                   |  108 +++
 lib/capture/meson.build                |   19 +
 lib/meson.build                        |    1 +
 lib/pcapng/rte_pcapng.c                |   32 +-
 lib/pcapng/rte_pcapng.h                |   30 +-
 usertools/dpdk-dumpcap.py              |  426 ++++++++++
 usertools/dpdk-wireshark-extcap.py     |  374 +++++++++
 17 files changed, 2744 insertions(+), 29 deletions(-)
 create mode 100644 app/test/test_capture.c
 create mode 100644 doc/guides/tools/wireshark_extcap.rst
 create mode 100644 lib/capture/capture.c
 create mode 100644 lib/capture/capture_impl.h
 create mode 100644 lib/capture/filter.c
 create mode 100644 lib/capture/meson.build
 create mode 100755 usertools/dpdk-dumpcap.py
 create mode 100755 usertools/dpdk-wireshark-extcap.py
Signature · 1 line
2.53.0