From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9BC8BA0C4D; Fri, 3 Sep 2021 02:47:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1E3514013F; Fri, 3 Sep 2021 02:47:38 +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 C3F8440041 for ; Fri, 3 Sep 2021 02:47:36 +0200 (CEST) Received: by mail-pf1-f179.google.com with SMTP id x19so2994197pfu.4 for ; Thu, 02 Sep 2021 17:47:36 -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:mime-version :content-transfer-encoding; bh=RLG+eSo5pB0ui/UzOy2g18I6HcfrDDiB41vg9Nx9ORM=; b=jVmxCdzL0xOHyDF8vBLCQknRAgZGEk9nK78MpVLR3kC4Fya6AAZSQwS43JwPyvBUuP NYdPsAEhQ7WAq7sJu6FPiMh3zw5/XoWanVkSICtU6kUmKivWIbYiGKsb4LdKwIHds+Z9 3mqPCBOKoUz/S0ie45BAZoDtYEw8XAXBeHjtqIEn+35ICduyH0k0yVCXW2lRroZJO37D FP8IpacQ96BxkdVqodhdly2T+2oD6kZanCqpvyXsoIAT9q1HiU4Csoi6IVKyYbyFERhD mxfw+kNTanA0mLhfbLMCrnylwXoKp752pppZJEZPw4N7gqovNqCLVyoUDc1yK+5zd47Z IzZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RLG+eSo5pB0ui/UzOy2g18I6HcfrDDiB41vg9Nx9ORM=; b=rq8Zxv1G4/nvfqEO1y8kUeGuOcJAWCSvctmbPfmM/AEWh2c3ESIbzM4sN9wPOvjSb2 GkoOj4eVu0Ga6Y11S/QfOOBHttB7gaTfO8S5Bs71HVw7VLIod01Hg6V8biwYAkC9kiyy 4q3VWCB2lxsKO57QR/hmKPBygJpPsERlQkjmYrwsqgLf0JgydqfIqS6cpGqjh9r/mM/L 86AUF6/1g0KmeeofELfrXo9+1sl2vv2ivnxfUSh/bAE5W4HKf2oGRu9AqNA6xri1+5Fo JRuQjcmCU7V9vuNsSc+jdJ9fouRQql2UvOE+nt/XW/ABAW0hXbEBkkLlRu15RlfTOrUe tK9g== X-Gm-Message-State: AOAM533jxqxm4CR/JnkupHm0wJYmUAP1Z9rd5uykbPFlpPSgygUm5LvF xruR1aLUXJUsNWTZW6gbUX4ZDtwbACu7rw== X-Google-Smtp-Source: ABdhPJzzj/aZ0pd/9IOJ6vO6N/6OdCCO/Ytb9YBhBY/xOCft9f6oyHFGn3b6lFgdYxjQEeNkgq77sw== X-Received: by 2002:a63:184a:: with SMTP id 10mr1053307pgy.149.1630630055377; Thu, 02 Sep 2021 17:47:35 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id cq8sm3179033pjb.31.2021.09.02.17.47.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Sep 2021 17:47:34 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Thu, 2 Sep 2021 17:47:27 -0700 Message-Id: <20210903004732.109023-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 0/5] Packet capture framework enhancements X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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