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 B75F4A0C4E; Thu, 21 Oct 2021 16:16:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A5DD7411FE; Thu, 21 Oct 2021 16:16:59 +0200 (CEST) Received: from mail-108-mta203.mxroute.com (mail-108-mta203.mxroute.com [136.175.108.203]) by mails.dpdk.org (Postfix) with ESMTP id B38E34118E for ; Thu, 21 Oct 2021 16:16:58 +0200 (CEST) Received: from filter004.mxroute.com ([149.28.56.236] filter004.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta203.mxroute.com (ZoneMTA) with ESMTPSA id 17ca3363afd0000b55.001 for (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Thu, 21 Oct 2021 14:16:52 +0000 X-Zone-Loop: 030cb9b63b973b8149af16165ab9a6ad2f4026f61756 X-Originating-IP: [149.28.56.236] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ashroe.eu; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:Cc: To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=w9PhsnMN6mrYTO1VsHBuF4j34SOoIRO7g+nVE65ATko=; b=MPpgJKuCuTiOF75B2CGWwtwxqv cUtxWAnnxBGz9iX8Ryb0B2vm9OolLVh/fkbClYk+PdIqZlOyQsfeqoHZ18Ts0bsxMF7S0GUn5Dmzi 7g7qhSP3OFgLj0nduysWEqnt7BbLSrOW0KYhMoBe647zwo1ptKTsh88CrJXVN4A5+os9/EtsMmW2B +1jXnXutqnwrMYd2xBCWHZiAL0LztO1J2xeRZONYDJGbpsVsa5Oa6VdsSg1KmaKKtRVr+PgnrAFjq aWoqu2+YHAmRQCLNe6DM++dstdDkFEDEuydMTFu/x9kb2SR4YfMdk6YIk4I5bfIJgDkIkCmOOQZJw rJIKtuhg==; Message-ID: Date: Thu, 21 Oct 2021 15:16:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Content-Language: en-US To: Stephen Hemminger , dev@dpdk.org Cc: Reshma Pattan , Anatoly Burakov References: <20210903004732.109023-1-stephen@networkplumber.org> <20211020214236.71444-1-stephen@networkplumber.org> <20211020214236.71444-7-stephen@networkplumber.org> From: "Kinsella, Ray" In-Reply-To: <20211020214236.71444-7-stephen@networkplumber.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AuthUser: mdr@ashroe.eu X-Zone-Spam-Resolution: no action X-Zone-Spam-Status: No, score=-0.1, required=15, tests=[ARC_NA=0, FROM_HAS_DN=0, RCPT_COUNT_THREE=0, TO_DN_SOME=0, MIME_GOOD=-0.1, FROM_EQ_ENVFROM=0, MIME_TRACE=0, RCVD_COUNT_ZERO=0, NEURAL_SPAM=0, MID_RHS_MATCH_FROM=0] Subject: Re: [dpdk-dev] [PATCH v15 06/12] pdump: support pcapng and filtering 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" On 20/10/2021 22:42, Stephen Hemminger wrote: > This enhances the DPDK pdump library to support new > pcapng format and filtering via BPF. > > The internal client/server protocol is changed to support > two versions: the original pdump basic version and a > new pcapng version. > > The internal version number (not part of exposed API or ABI) > is intentionally increased to cause any attempt to try > mismatched primary/secondary process to fail. > > Add new API to do allow filtering of captured packets with > DPDK BPF (eBPF) filter program. It keeps statistics > on packets captured, filtered, and missed (because ring was full). > > Signed-off-by: Stephen Hemminger > Acked-by: Reshma Pattan > --- > lib/meson.build | 4 +- > lib/pdump/meson.build | 2 +- > lib/pdump/rte_pdump.c | 432 ++++++++++++++++++++++++++++++------------ > lib/pdump/rte_pdump.h | 113 ++++++++++- > lib/pdump/version.map | 8 + > 5 files changed, 433 insertions(+), 126 deletions(-) > Acked-by: Ray Kinsella