[dpdk-dev] [PATCH v15 06/12] pdump: support pcapng and filtering

Kinsella, Ray mdr at ashroe.eu
Thu Oct 21 16:16:49 CEST 2021



On 20/10/2021 22:42, Stephen Hemminger wrote:
> 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 at networkplumber.org>
> Acked-by: Reshma Pattan <reshma.pattan at intel.com>
> ---
>   lib/meson.build       |   4 +-
>   lib/pdump/meson.build |   2 +-
>   lib/pdump/rte_pdump.c | 432 ++++++++++++++++++++++++++++++------------
>   lib/pdump/rte_pdump.h | 113 ++++++++++-
>   lib/pdump/version.map |   8 +
>   5 files changed, 433 insertions(+), 126 deletions(-)
> 

Acked-by: Ray Kinsella <mdr at ashroe.eu>


More information about the dev mailing list