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 47740A034F for ; Thu, 1 Apr 2021 09:45:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3DAB8141053; Thu, 1 Apr 2021 09:45:42 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 05A964013F; Thu, 1 Apr 2021 09:45:39 +0200 (CEST) IronPort-SDR: bt7Fc47HNfqPCyGlNIc1AY3BzM2MC/mKn6/Eo97nCf/5TlfNgMN8rrL1HkRoH+odZTz5zj/52W +sEzCvuQ2O2g== X-IronPort-AV: E=McAfee;i="6000,8403,9940"; a="189945563" X-IronPort-AV: E=Sophos;i="5.81,296,1610438400"; d="scan'208";a="189945563" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2021 00:45:35 -0700 IronPort-SDR: 0y9FYJ79Y8bzFcG8JwNFjkNN6V98kX57Q5YcHxhbOJ30PsQdVLcZiWTSepEba33TywwvgdZHKr zzer0qoW0gwg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,296,1610438400"; d="scan'208";a="412555820" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by fmsmga008.fm.intel.com with ESMTP; 01 Apr 2021 00:45:35 -0700 Received: from shsmsx604.ccr.corp.intel.com (10.109.6.214) by fmsmsx606.amr.corp.intel.com (10.18.126.86) 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:33 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX604.ccr.corp.intel.com (10.109.6.214) 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:31 +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:31 +0800 From: "Zhang, Qi Z" To: "Wang, Haiyue" , "Zhang, AlvinX" , "Guo, Jia" CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH v2] net/e1000: fix Rx error counter for badlen packets Thread-Index: AQHXJr6k6SWimpxgmkWcHKemgKfUIaqfSGvQ Date: Thu, 1 Apr 2021 07:45:31 +0000 Message-ID: <73740cc758ee4998b4035ebda838453f@intel.com> References: <20210401050821.13640-1-alvinx.zhang@intel.com> <20210401052132.21080-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/e1000: 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/e1000: fix Rx error counter for ba= dlen > packets >=20 > > -----Original Message----- > > From: Zhang, AlvinX > > Sent: Thursday, April 1, 2021 13:22 > > To: Wang, Haiyue ; Guo, Jia > > Cc: dev@dpdk.org; Zhang, AlvinX ; > > stable@dpdk.org > > Subject: [PATCH v2] net/e1000: 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: 70bdb18657da ("ethdev: add Rx error counters for missed, badcrc > > and badlen packets") > > Cc: stable@dpdk.org > > > > Signed-off-by: Alvin Zhang > > --- > > > > V2: Refine commit log > > --- > > drivers/net/e1000/em_ethdev.c | 3 +-- > > drivers/net/e1000/igb_ethdev.c | 3 +-- > > 2 files changed, 2 insertions(+), 4 deletions(-) > > >=20 > Acked-by: Haiyue Wang Applied to dpdk-next-net-intel. Thanks Qi >=20 > > -- > > 1.8.3.1