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 3EFAFA0524; Thu, 4 Feb 2021 19:31:53 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BA0AD2407C9; Thu, 4 Feb 2021 19:31:52 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 798EF2407C8 for ; Thu, 4 Feb 2021 19:31:51 +0100 (CET) IronPort-SDR: 5yRPfZZdGJXmOzvxFf78vrsTgQhuohuKn1uzz1WAUWZFbmLQI2DVozNDItRLg4Z/7u/9tTxcEI nMost6I2ZpVQ== X-IronPort-AV: E=McAfee;i="6000,8403,9885"; a="180528160" X-IronPort-AV: E=Sophos;i="5.81,153,1610438400"; d="scan'208";a="180528160" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2021 10:31:50 -0800 IronPort-SDR: qDc+Qx9KnAmkHM6ZnOqtE4512989LcLBdcfS0u4p2cdw4HxXrf31sjdCGL2V0luSvt2DgV9tzD fceGQgOfKeNg== X-IronPort-AV: E=Sophos;i="5.81,153,1610438400"; d="scan'208";a="393312696" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.211.210]) ([10.213.211.210]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2021 10:31:49 -0800 To: Ido Goshen Cc: dev@dpdk.org References: <20210201083012.28544-1-ido@cgstowernetworks.com> <20210204103357.72512-1-ido@cgstowernetworks.com> From: Ferruh Yigit Message-ID: <3211966a-fa44-26b3-c460-9c2c83a9074e@intel.com> Date: Thu, 4 Feb 2021 18:31:45 +0000 MIME-Version: 1.0 In-Reply-To: <20210204103357.72512-1-ido@cgstowernetworks.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v4 1/1] net/pcap: imissed stats support 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 2/4/2021 10:33 AM, Ido Goshen wrote: > get value from pcap_stats.ps_drop (see man pcap_stats) > the value is adjusted in this cases: > - port stop - pcap is closed and will lose count > - stats reset - pcap doesn't provide reset api > - rollover - pcap counter size is u_32 only > > Signed-off-by: Ido Goshen Acked-by: Ferruh Yigit