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 1E6F8A0C5C; Wed, 8 Sep 2021 19:16:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D89EE40E01; Wed, 8 Sep 2021 19:16:50 +0200 (CEST) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mails.dpdk.org (Postfix) with ESMTP id 8C0BB4003E for ; Wed, 8 Sep 2021 19:16:49 +0200 (CEST) Received: by mail-pl1-f174.google.com with SMTP id q3so1734256plx.4 for ; Wed, 08 Sep 2021 10:16:49 -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=8XoO44aHZgNrXRcU2cr7iNOCyQiqCto/lRKoWMtWpw4=; b=JMZvrkoIi5yJzEoSmz1ahSWuTniH50fjcxMtpign6L62srrWSSj9vVgXYbT7cRABP0 A5CvLzb/chS+IT7KgqGT1rEkhVzcUxi+QLmUd1EQytXKcBTJIDOkLjkgJJUIo/DkC7/m dJl3XjmP/i+muCJmjQKjopwCF5bmEgxTVAcLHrrWH7VCeF57tPYD7+kGpqtBwpGwgFOw SdV8tph997gNP0zB2qQ2hX2eluCeAqdwMvIFa+HbLq743nNVLOyUOE7moKYFQeuJRYVK ElbGlr1sI/K5f/kOo5q8AyJEoQ/ElnI5eYanPkD2cKPybaPS1AxAfmP00v3r0qi4so9W hc/g== 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=8XoO44aHZgNrXRcU2cr7iNOCyQiqCto/lRKoWMtWpw4=; b=Lda3GW5r5LIuGjhLyktKMrGaQXxubnD6xkzkTzM75I1ISqqS56H4pcbQ6b7Y1I9hZm GvfsXUcyV0Mg/0IpB3h3ptFB3Sh4/mx5bn4t/Ol4j5dOQVAw8hHjZwg6vZc7TF/w4ubR g4sclTnUn+GvaRSHSwFiBgWAuv6AygAb3v7ldkWJtFrPkNEq4Qb1y2FZyx0UGP4PBe/4 nRb+BQfJ/o0kGYK9Z9PMM6Zi1WfwAnDLb3m4eMvjXc8GKwTrChFK6rAqvfJrwdhdOOOV DV654+wJMoFsGj1yj37x+1Ca5QFRsiWcsIqIc3TSiOWbXkmY+I3S+IZu4wT5uCN2Qof4 APLA== X-Gm-Message-State: AOAM530v/yPUSS94lMezFVC+YRZK7CPPmhbi8XxC2XpJEE0gI9CsiO6o T7+cHHaBs11NhRgqJrNSO+yBg1ZSGdLo2A== X-Google-Smtp-Source: ABdhPJyM560cdBeEW99QiFbH8ieme8XfHz4jnvgvvehsEKyVaTtaQCf/i+TrKQZrabexda4ChjsZHA== X-Received: by 2002:a17:902:e793:b0:138:f941:e2d7 with SMTP id cp19-20020a170902e79300b00138f941e2d7mr3982764plb.67.1631121407971; Wed, 08 Sep 2021 10:16:47 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id d5sm3194571pfd.142.2021.09.08.10.16.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Sep 2021 10:16:47 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 8 Sep 2021 10:16:36 -0700 Message-Id: <20210908171644.26571-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 v4 0/8] 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 It preserves the old pdump command as is for those people who never want to change. 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 (8): 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 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 | 5 +- 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(+), 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/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