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 BFBF7A034F for ; Thu, 1 Apr 2021 09:46:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B3EDB141078; Thu, 1 Apr 2021 09:46:01 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id BB34D4013F; Thu, 1 Apr 2021 09:45:58 +0200 (CEST) IronPort-SDR: iXtTDVLZB/QLUNM31nnEsjbiNmjq3TNFtnzK+p1rnNzZXFZGCPR3lcs61RJ3Lfw8BpG7za99Ql rk9o8Pn5nXKA== X-IronPort-AV: E=McAfee;i="6000,8403,9940"; a="171594840" X-IronPort-AV: E=Sophos;i="5.81,296,1610438400"; d="scan'208";a="171594840" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2021 00:45:55 -0700 IronPort-SDR: nPtcy+DYesAYa++d6QNS35nH3HwJ1a/H7nJXwLkfZkA26JQFsMMuzw0QaCgPdla0dnqjHf0cBl olxpxVT0eUBQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,296,1610438400"; d="scan'208";a="416562789" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga007.jf.intel.com with ESMTP; 01 Apr 2021 00:45:54 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 1 Apr 2021 00:45:53 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX606.ccr.corp.intel.com (10.109.6.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 1 Apr 2021 15:45:51 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2106.013; Thu, 1 Apr 2021 15:45:51 +0800 From: "Zhang, Qi Z" To: "Wang, Haiyue" , "Zhang, AlvinX" , "Guo, Jia" CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH v2] net/igc: fix Rx error counter for badlen packets Thread-Index: AQHXJr6qtlTeISfUA06DxSx1B6mfIaqfSIbQ Date: Thu, 1 Apr 2021 07:45:51 +0000 Message-ID: References: <20210401050711.18228-1-alvinx.zhang@intel.com> <20210401052043.15800-1-alvinx.zhang@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-stable] [PATCH v2] net/igc: fix Rx error counter for badlen packets X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" > -----Original Message----- > From: dev On Behalf Of Wang, Haiyue > Sent: Thursday, April 1, 2021 2:16 PM > To: Zhang, AlvinX ; Guo, Jia > Cc: dev@dpdk.org; stable@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2] net/igc: fix Rx error counter for badl= en > packets >=20 > > -----Original Message----- > > From: Zhang, AlvinX > > Sent: Thursday, April 1, 2021 13:21 > > To: Wang, Haiyue ; Guo, Jia > > Cc: dev@dpdk.org; Zhang, AlvinX ; > > stable@dpdk.org > > Subject: [PATCH v2] net/igc: fix Rx error counter for badlen packets > > > > When the size of a packet in Rx channel is less than the minimum or > > greater than the maximum, the packet will be simultaneously counted by > > RLEC(Receive Length Error Count) and RUC(Receive Under Size > > Count)/ROC(Receive Oversize Count) registers. > > > > This patch fixes the issue of counting a length error packet twice > > when counting the total number of received error packets. > > > > Fixes: e6defdfddc3b ("net/igc: enable statistics") > > Cc: stable@dpdk.org > > > > Signed-off-by: Alvin Zhang > > --- > > > > V2: Refine commit log > > --- > > drivers/net/igc/igc_ethdev.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > >=20 > Acked-by: Haiyue Wang Applied to dpdk-next-net-intel. Thanks Qi >=20 > > -- > > 1.8.3.1