From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id F23ACA0C58;
	Wed,  8 Sep 2021 23:50:58 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 7E3FF40DDE;
	Wed,  8 Sep 2021 23:50:58 +0200 (CEST)
Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com
 [209.85.210.179])
 by mails.dpdk.org (Postfix) with ESMTP id 6A0CE4003E
 for <dev@dpdk.org>; Wed,  8 Sep 2021 23:50:57 +0200 (CEST)
Received: by mail-pf1-f179.google.com with SMTP id y17so3134687pfl.13
 for <dev@dpdk.org>; Wed, 08 Sep 2021 14:50:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=networkplumber-org.20150623.gappssmtp.com; s=20150623;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=JnJJz+THQCGzO9VBGfCZmPL2+ycl57mKhU5h6XBPDpo=;
 b=BXbjlsx6DSKp+96CrbPEqcn0eW8gif/LUtL0+SA/g3y0PwXoPVBJbI9N2/WxIXGYb2
 lc+5ItOOP68uEj7YKjMQeGEzCjRitzDv/+wK0oZuo7/sDNNA6MiJNkfPOh5TjjZTKw5E
 LVxW18B83212XSRlqzr8UP4cG9toPUyRuHDYdZ0Ip2+bxaLjYVaIxDMT3oe07xQQ4l2v
 AoiqC3ziDkPHMnxqK2/vaLoKaMzaLcoXIgo/J7tbbVpIwUEj08hOBMi7GlZaYuAFYnmr
 OXMUWNZY0T8bgMre58w3316jlbjN3ulkjrYhYDpuJHtpJzVxM+vFwDjqhLuaMJ4U18lu
 1JPA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=JnJJz+THQCGzO9VBGfCZmPL2+ycl57mKhU5h6XBPDpo=;
 b=k472GY5yKU1G357iei5xBkYKNxu9531O2tjZ1ax3qiwXu+IcErEPU6fdyu7id+fjSl
 UKDV5TAJ+A/pEfAh7f0km6QLS4burJKymXFKBXHCCseUb68mlSO3L5vqrg+AJgkyaMw3
 eoagvFwTSvahKvb+NkUKVK1IUIzk1S/3QHQiiWq3/DkdIhozV9bQiThWnB33/vCjRtD7
 7UFpGZbgg28XVjIaM7+s0HJnj/k+hoX5WmIswjWBVXG5v4ikD6NaKDA0LwdtSAF4IR7P
 Vk1/kVewrS7iyuqhxTbFG4dOoQPtKvGaBbAT5qOWnb0PsBXyh6LaUGbjIxlTYF9cCl6q
 R7xQ==
X-Gm-Message-State: AOAM533/n1SoiRLvhXGYJSGfV3UWQgGH0Vii1D54S9DLOHUFn38d8pJ1
 k20DHSjooV1M1Lk5r7ROqUaQp64BeV2sKw==
X-Google-Smtp-Source: ABdhPJzxcMH1Dg21O5t7KarZNb/JezyHM/yYIktu5n9SblTBR3NfzEZCJT8ouuNGU/fPAKAOv1Wpqg==
X-Received: by 2002:a63:5f16:: with SMTP id t22mr289043pgb.86.1631137855845;
 Wed, 08 Sep 2021 14:50:55 -0700 (PDT)
Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123])
 by smtp.gmail.com with ESMTPSA id a80sm151923pfd.179.2021.09.08.14.50.54
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 08 Sep 2021 14:50:55 -0700 (PDT)
From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: Stephen Hemminger <stephen@networkplumber.org>
Date: Wed,  8 Sep 2021 14:50:44 -0700
Message-Id: <20210908215053.74628-1-stephen@networkplumber.org>
X-Mailer: git-send-email 2.30.2
In-Reply-To: <20210903004732.109023-1-stephen@networkplumber.org>
References: <20210903004732.109023-1-stephen@networkplumber.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [dpdk-dev] [PATCH v5 0/9] Packet capture framework enhancements
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

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

It preserves the old pdump command as is for those people
who never want to change.

v5 changes:
  - minor build and checkpatch fixes for RHEL/FreeBSD
  - disable lib/pdump on Windows. It was not useful before
    and now pdump depends on bpf.

v4 changes:
  - minor checkpatch fixes.
    Note: some of the checkpatch warnings are bogus and won't be fixed.
  - fix build of dumpcap on FreeBSD

v3 changes:
  - introduce packet filters using classic BPF to eBPF converter
    required small fix to DPDK BPF interpreter
  - introduce function to decode eBPF instructions
  - add option to dumpcap to show both classic BPF and eBPF result
  - drop some un-useful stubs
  - minor checkpatch warning cleanup


Stephen Hemminger (9):
  librte_pcapng: add new library for writing pcapng files
  bpf: allow self-xor operation
  bpf: add function to convert classic BPF to DPDK BPF
  bpf: add function to dump eBPF instructions
  lib: pdump is not supported on Windows
  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                            | 827 ++++++++++++++++++
 app/dumpcap/meson.build                       |  16 +
 app/meson.build                               |   1 +
 doc/api/doxy-api-index.md                     |   1 +
 doc/api/doxy-api.conf.in                      |   1 +
 .../howto/img/packet_capture_framework.svg    |  96 +-
 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                  |  86 ++
 doc/guides/tools/index.rst                    |   1 +
 lib/bpf/bpf_convert.c                         | 570 ++++++++++++
 lib/bpf/bpf_dump.c                            | 118 +++
 lib/bpf/bpf_validate.c                        |   8 +-
 lib/bpf/meson.build                           |   6 +
 lib/bpf/rte_bpf.h                             |  39 +
 lib/bpf/version.map                           |   7 +
 lib/meson.build                               |   6 +-
 lib/pcapng/meson.build                        |   8 +
 lib/pcapng/pcapng_proto.h                     | 129 +++
 lib/pcapng/rte_pcapng.c                       | 574 ++++++++++++
 lib/pcapng/rte_pcapng.h                       | 194 ++++
 lib/pcapng/version.map                        |  12 +
 lib/pdump/meson.build                         |   2 +-
 lib/pdump/rte_pdump.c                         | 437 ++++++---
 lib/pdump/rte_pdump.h                         | 110 ++-
 lib/pdump/version.map                         |   8 +
 30 files changed, 3177 insertions(+), 216 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/bpf/bpf_convert.c
 create mode 100644 lib/bpf/bpf_dump.c
 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