[PATCH v2 0/4] Wireshark external capture interface
Stephen Hemminger
stephen at networkplumber.org
Tue Jul 28 00:42:43 CEST 2026
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.
The pcapng interface-statistics block gains a filter-accepted count,
which changes the rte_pcapng_write_stats() signature.
v2 - review feedback from checkpatch and AI
- defer dpdk-dumpcap.py until later
- add more documentation
Stephen Hemminger (4):
pcapng: extend interface statistics
capture: infrastructure wireshark packet capture
test: add test for capture hooks
usertools: add script for wireshark capture
MAINTAINERS | 4 +
app/dumpcap/main.c | 16 +-
app/test/meson.build | 1 +
app/test/test_capture.c | 660 +++++++++++++
app/test/test_pcapng.c | 10 +-
doc/guides/prog_guide/capture_lib.rst | 168 ++++
doc/guides/prog_guide/index.rst | 1 +
doc/guides/rel_notes/release_26_11.rst | 14 +
doc/guides/tools/index.rst | 1 +
doc/guides/tools/wireshark_extcap.rst | 144 +++
lib/capture/capture.c | 1199 ++++++++++++++++++++++++
lib/capture/capture_impl.h | 56 ++
lib/capture/filter.c | 110 +++
lib/capture/meson.build | 19 +
lib/meson.build | 1 +
lib/pcapng/rte_pcapng.c | 50 +-
lib/pcapng/rte_pcapng.h | 33 +-
usertools/dpdk-wireshark-extcap.py | 416 ++++++++
usertools/meson.build | 1 +
19 files changed, 2871 insertions(+), 33 deletions(-)
create mode 100644 app/test/test_capture.c
create mode 100644 doc/guides/prog_guide/capture_lib.rst
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-wireshark-extcap.py
--
2.53.0
More information about the dev
mailing list