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 454B5A0548; Wed, 8 Sep 2021 06:51:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C1BBC410EB; Wed, 8 Sep 2021 06:50:58 +0200 (CEST) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by mails.dpdk.org (Postfix) with ESMTP id 15E4E4003E for ; Wed, 8 Sep 2021 06:50:56 +0200 (CEST) Received: by mail-pj1-f43.google.com with SMTP id ot2-20020a17090b3b4200b0019127f8ed87so536964pjb.1 for ; Tue, 07 Sep 2021 21:50:56 -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=m0TizJYpaO3k1zhP3ztHRu2xf5voR+Lm7w4I7SPzbnE=; b=NLjK+OrXPwPXwFIog4YHFHIGfvvHebmwjASJKc+JF1sM0vldj+N/Q4yag7jczR4VnT GFhqt4sPxgsjii9BfL2sY70AlthaxCHFUOukoBv8GemuP8wFxalvWIREx2hZPHGhRLlj cra++nIgg3CA5s1MFtrDIGhx/k5YvM//b6fzLr00UHZNCFgIfdTZNenPA0Y9Jt0JJRdc WNu1uEzpCxx1dcgzrWwjy5J33WkUrL9N2DA4uArbbjtZ38IRvggfpcBPEV7JWSI1UERA NWDgjzkbFwaHM+YjW+k2/1879K9lxa+vwBkfWzlBbOk9ifxtUnpSmUzyNyTQfGcFjVdM hTqQ== 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=m0TizJYpaO3k1zhP3ztHRu2xf5voR+Lm7w4I7SPzbnE=; b=UUHIYmx7SecPt9ao43CRnM7ZruM3WHsySgLOCswtp2fMHhClOxYYWo7cYZ+DDxyBmI R7cIMub1XliWqy1BRaT2qsUmXayTfQYbU4HpHJlVMUInD/S27xNObYRKygjEtG894bCI 41ACGCjJVK75dhccwTeTw92WVflIfpOe1BSxIwDbpJ6r/QTE3LU/MJqZmMuyGa7IxQDB U3RMOJNjQFF4V3ksy53mQKZpEto38oprC6xUexwSKCle2R8UIu64NvZrnOSgI4QzarxM alXVS4ubmxzwb2ebQ9ujfV5mDx3/hPf5ZGmIT64yp1n375Y2l2K4c/xSCL658o+h6hwL /37A== X-Gm-Message-State: AOAM533Ls/PbR3T9VHWYHfGRH+uTTzjum8YQVVefj7Dxlweob3HVego2 w4xkvhLM8V87m6+AiyGwcSDU7r9NHBh3ag== X-Google-Smtp-Source: ABdhPJyUbXODI/8ep59C0QXsQxPRp4oFsTWcXsTmAzyKgMK19kbkc6gkeD0c2M6n/AcByn978LbQdg== X-Received: by 2002:a17:90a:1a50:: with SMTP id 16mr1998563pjl.85.1631076655553; Tue, 07 Sep 2021 21: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 e2sm701241pfn.141.2021.09.07.21.50.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Sep 2021 21:50:54 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Tue, 7 Sep 2021 21:50:44 -0700 Message-Id: <20210908045052.123849-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 v3 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. 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 | 832 ++++++++++++++++++ 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 | 580 ++++++++++++ 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, 3192 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