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 4C277A0C45; Mon, 13 Sep 2021 20:15:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D1EA640151; Mon, 13 Sep 2021 20:15:14 +0200 (CEST) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by mails.dpdk.org (Postfix) with ESMTP id 319D94014F for ; Mon, 13 Sep 2021 20:15:14 +0200 (CEST) Received: by mail-pj1-f51.google.com with SMTP id j1so6957478pjv.3 for ; Mon, 13 Sep 2021 11:15:14 -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=VsJ1gtkeVKR470AeI9Z0ItjgduUPz8SFMjSGUBF+6Yo=; b=czKSl4764TxG+2bpy6+YAGUkOF+GELIYk3jr3nH0TSgRSOESAEdDal67TPxC+75tMP zMNFqNEcJRieO/klfi2bhHfBUxCyPtJnMRQ27h6sSj2sOoqFFC+bsBvcKd4gTUyEtNhi UEtN85fY9YKKiKCK7vt1XpVT4wA07qrRwH9qS9SO8n6daKWs/6Mxcj/kdiRSTihLStJ0 rqxCxHeLJ+Ko3ghif9EZ7VC8lZ36M7GTXnxb9ZAA8W0I+zVs94cLbCEj6kPDGqM82X8S I6dWOEIgmH8JL+iB31pQTzPhkMNB/jlGbaU6HRtyn/P+iFUTFn5xpDs2muysWKOWlXsT FXuQ== 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=VsJ1gtkeVKR470AeI9Z0ItjgduUPz8SFMjSGUBF+6Yo=; b=iPqAEji6S3yU3iN+RQ2V+w5I+iCbPLHmvM2tssPLhlkSMP1XoIg+FR7CpDBU9DAonY LGGBH/sUgEDFLIaK71s2GNRDv7YqYFnZ2NDdrQVelW40M06+pw7+WLrhJ3Hv8d1+4NWJ riR7s3GE3wQPleWA9xo/mt3orBQDfJsZNvxoC/DbLCihUsGBJVDdTT9NY2rbE2bEzLBu curEtQERrHHMFLjDgF0GTtOPwGCBk6Z7wUo+VEQ9lPlHwOXuoC0tJXsvxPrfNrFICdV5 EtwKPHs1dvdmcSiCBKclnduIkHCeJEHGFmPuaAp7i00swxe59fwN0UhoJ573Lt2BLxGx CRvA== X-Gm-Message-State: AOAM531rlM2WGTDMxu/gf6s6+bvVp55T26xO7gknW1L+igjknIyWZz5s p9Rpv9QKS2JH6RlfQ/YZ8Veb71qybin8kQ== X-Google-Smtp-Source: ABdhPJwl55P6WQcQnKe8oAnSGgvR5WYXTJb0D1SWX3WfMMGdYmb2nqlCCIwBxUEE+HPICEi4HpjLqg== X-Received: by 2002:a17:902:8648:b029:129:dda4:ddc2 with SMTP id y8-20020a1709028648b0290129dda4ddc2mr11602621plt.4.1631556912707; Mon, 13 Sep 2021 11:15:12 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id b10sm7616888pfl.220.2021.09.13.11.15.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 11:15:11 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Mon, 13 Sep 2021 11:14:58 -0700 Message-Id: <20210913181510.46058-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 v8 00/12] 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 v8 changes: - enable BPF tests in autotest - add more BPF test strings - use rte_strscpy to satisfy checkpatch - merge MAINTAINERS (put this in with existing pdump) v7 changes: - add functional tests for pcapng lib - bug fix for error returns in pcapng lib - handle long osname on FreeBSD Stephen Hemminger (12): librte_pcapng: add new library for writing pcapng files lib: pdump is not supported on Windows 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 test: add test for bpf_convert test: add a test for pcapng library test: enable bpf autotest doc: changes for new pcapng and dumpcap MAINTAINERS: add entry for new packet capture features MAINTAINERS | 11 +- app/dumpcap/main.c | 844 ++++++++++++++++++ app/dumpcap/meson.build | 16 + app/meson.build | 1 + app/test/meson.build | 3 + app/test/test_bpf.c | 173 ++++ app/test/test_pcapng.c | 190 ++++ 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 | 575 ++++++++++++ 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 | 441 ++++++--- lib/pdump/rte_pdump.h | 110 ++- lib/pdump/version.map | 8 + 33 files changed, 3569 insertions(+), 221 deletions(-) create mode 100644 app/dumpcap/main.c create mode 100644 app/dumpcap/meson.build create mode 100644 app/test/test_pcapng.c 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