pdump: support pcapng and filtering
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 20 Oct 2021 21:42:30 +0000 (14:42 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 22 Oct 2021 20:07:48 +0000 (22:07 +0200)
commit10f726efe26c55805cf0bf6ca1b80e97b98eb724
tree36aa4bde50f9848923493a4a495f370743ce195d
parent745b7587f9e52a4df2121d7214346853b4baf5ed
pdump: support pcapng and filtering

This enhances the DPDK pdump library to support new
pcapng format and filtering via BPF.

The internal client/server protocol is changed to support
two versions: the original pdump basic version and a
new pcapng version.

The internal version number (not part of exposed API or ABI)
is intentionally increased to cause any attempt to try
mismatched primary/secondary process to fail.

Add new API to do allow filtering of captured packets with
DPDK BPF (eBPF) filter program. It keeps statistics
on packets captured, filtered, and missed (because ring was full).

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Ray Kinsella <mdr@ashroe.eu>
doc/guides/prog_guide/pdump_lib.rst
doc/guides/rel_notes/release_21_11.rst
lib/meson.build
lib/pdump/meson.build
lib/pdump/rte_pdump.c
lib/pdump/rte_pdump.h
lib/pdump/version.map