[dpdk-dev] [PATCH 0/5] Packet capture framework enhancements
Stephen Hemminger
stephen at networkplumber.org
Fri Sep 3 02:47:27 CEST 2021
This patch set is a more complete version of the the enhanced
packet capture support described last year.
The new capture library and utility are:
- faster avoids lots of extra I/O, does bursting, etc.
- gives more information (multiple ports, queues, etc)
- has a better user interface (same as Wireshark dumpcap)
- fixes structural problems with VLAN's and timestamps
And it keeps the old pdump command as is for those people
who never want to change.
The one missing piece is that dumpcap utility does not
yet have the necessary converter to take the classic
BPF for pcap_compile and convert it to eBPF for DPDK.
(It is not hard, just not working right yet.)
Stephen Hemminger (5):
librte_pcapng: add new library for writing pcapng files
pdump: support pcapng and filtering
app/dumpcap: add new packet capture application
doc: changes for new pcapng and dumpcap
MAINTAINERS: add entry for new pcapng and dumper
MAINTAINERS | 6 +
app/dumpcap/main.c | 829 ++++++++++++++++++
app/dumpcap/meson.build | 11 +
app/meson.build | 1 +
doc/api/doxy-api-index.md | 1 +
doc/api/doxy-api.conf.in | 1 +
doc/guides/howto/packet_capture_framework.rst | 67 +-
doc/guides/prog_guide/index.rst | 1 +
doc/guides/prog_guide/pcapng_lib.rst | 24 +
doc/guides/prog_guide/pdump_lib.rst | 28 +-
doc/guides/rel_notes/release_21_11.rst | 10 +
doc/guides/tools/dumpcap.rst | 80 ++
doc/guides/tools/index.rst | 1 +
lib/meson.build | 5 +-
lib/pcapng/meson.build | 8 +
lib/pcapng/pcapng_proto.h | 129 +++
lib/pcapng/rte_pcapng.c | 543 ++++++++++++
lib/pcapng/rte_pcapng.h | 175 ++++
lib/pcapng/version.map | 12 +
lib/pdump/meson.build | 2 +-
lib/pdump/rte_pdump.c | 386 +++++---
lib/pdump/rte_pdump.h | 117 ++-
lib/pdump/version.map | 8 +
23 files changed, 2283 insertions(+), 162 deletions(-)
create mode 100644 app/dumpcap/main.c
create mode 100644 app/dumpcap/meson.build
create mode 100644 doc/guides/prog_guide/pcapng_lib.rst
create mode 100644 doc/guides/tools/dumpcap.rst
create mode 100644 lib/pcapng/meson.build
create mode 100644 lib/pcapng/pcapng_proto.h
create mode 100644 lib/pcapng/rte_pcapng.c
create mode 100644 lib/pcapng/rte_pcapng.h
create mode 100644 lib/pcapng/version.map
--
2.30.2
More information about the dev
mailing list