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 6DB5AA0547; Sat, 4 Sep 2021 00:06:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DEB6540DDD; Sat, 4 Sep 2021 00:06:15 +0200 (CEST) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mails.dpdk.org (Postfix) with ESMTP id 0A20F4067E for ; Sat, 4 Sep 2021 00:06:13 +0200 (CEST) Received: by mail-pl1-f175.google.com with SMTP id u1so349351plq.5 for ; Fri, 03 Sep 2021 15:06:13 -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=ZqszOOH5G0JSnU5N0FjSJvN9zkkLwuUWDKyfk4U03U4=; b=YKfZ+Z4lPAUv63Dyn5p9FUYs9oA5ZenATeF0PEEmZD78eNc1DWUYydeFNoyPFGWNhU WCt0XodsxbUdcAdVC7NrvW9UDHXjZyRsBTxC5sxj/FU4SpxMa4l83vfWOVRE+R8Av21X B7pspOa6yAaBNTUf8NoQxhkluFZ2n2ha/OlcI7WiDMxfeLLNp6piaoGxoO4fHIsiOiZl 20b1ez7btaG9bxWztRDWMYoJkcmYNC0UjVKmFIhOFhEJ0mtmKpwAaRCb7HaCkzjW0IO2 QkF4pUu6whw1esI2CMaJPmaqXdxqM39fLOxvYrLDv2YeHT+wn8vZe0w36JtjddI/tITT 4a6w== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZqszOOH5G0JSnU5N0FjSJvN9zkkLwuUWDKyfk4U03U4=; b=o2Dby1TAyQ/vQp7UOeYMx5KCD1HLdwPdP66aZMJ16Jjmngk6Fm5jWUEgboB4sbyFBP RBwRiJ1fIQJqNOilocCFHgHqoWz+VaKD0YAl4BrtPLPZFwULHjoO4FmKnC+sSIfJdH1F 6wJXV3qGtH1tOpZtV/Akhtu5Rim3ZxnqXYmpIBHnZhQ3SpHXFMDZRYUqHJ6vKj39yAYE 1Up3wvr5+EK+kyqrviVegda2iLO+0XMVVhMOXYwk6rG2IEcmeRM8Mdq1WsDjzGHnKAHW OzM7Dp0zA3fkQ04vBGxzaHpl6EzoZt0KABNODDGn2XSis+XRexoE9hZfe3MDYtM0lpiB Iy2w== X-Gm-Message-State: AOAM532/Boh3F4/jXskrlllQMpc7j87Pc6q8WsDIcUa7SST+XHUrJ4Ix CtmLaJ6nTxfj+8ttWNLID7aIXaEUQjuFhA== X-Google-Smtp-Source: ABdhPJwQImgLQd5GdBShWdfqvCJj6ECWA+qgmlXqHnRlMKk5KJtKpMMe6krNn/Ct7kZHq4/WsHStVw== X-Received: by 2002:a17:902:8a96:b0:138:c162:ff62 with SMTP id p22-20020a1709028a9600b00138c162ff62mr771276plo.43.1630706772548; Fri, 03 Sep 2021 15:06:12 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id s14sm338251pgf.4.2021.09.03.15.06.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Sep 2021 15:06:11 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Fri, 3 Sep 2021 15:06:04 -0700 Message-Id: <20210903220609.41899-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 v2 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.) v2 fix formatting of packet blocks fix the new packet capture statistics fix crash when primary process exits record start/end time various whitespace/checkpatch warnings 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 | 831 ++++++++++++++++++ app/dumpcap/meson.build | 18 + 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 | 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 | 577 ++++++++++++ lib/pcapng/rte_pcapng.h | 205 +++++ lib/pcapng/version.map | 13 + lib/pdump/meson.build | 2 +- lib/pdump/rte_pdump.c | 419 ++++++--- lib/pdump/rte_pdump.h | 110 ++- lib/pdump/version.map | 8 + 24 files changed, 2426 insertions(+), 215 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