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 D83C0A0547 for ; Thu, 1 Apr 2021 08:16:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C8CF4141011; Thu, 1 Apr 2021 08:16:19 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 08EBA4013F; Thu, 1 Apr 2021 08:16:16 +0200 (CEST) IronPort-SDR: bbDImIXXGk+Wz7UIxomXZF1mFqDDC9wwgRh2eNuixdebEZxY9F/brwoTutW9aTTSCizQrxi/Pp WUbS9MRzfL1Q== X-IronPort-AV: E=McAfee;i="6000,8403,9940"; a="212411455" X-IronPort-AV: E=Sophos;i="5.81,296,1610438400"; d="scan'208";a="212411455" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2021 23:16:13 -0700 IronPort-SDR: 7+PN8iHU0pzTQfGHMCqsb0Y5GkHOCCOW5w31n1aecFehxIisvKu9VTiog2x+Vb2ehDF4z7wpIx Yr2tRf79fp6A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,296,1610438400"; d="scan'208";a="394372803" Received: from orsmsx604.amr.corp.intel.com ([10.22.229.17]) by orsmga002.jf.intel.com with ESMTP; 31 Mar 2021 23:16:13 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Wed, 31 Mar 2021 23:16:12 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2 via Frontend Transport; Wed, 31 Mar 2021 23:16:12 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.100) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2106.2; Wed, 31 Mar 2021 23:16:11 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PvcOrTL6j7DItKsAJqvZA1/RqLZNtycXh1cV//ay8srZou2k3x3NCJX7U2lcvoZKWDsmdFuEB0esZyRdreUfrqfCdCli5UWuocoIES+5ITCZHDWUlQvvsqierx4jEphgNtZTAHoRzjacxkYvMXMtOrWuIvbrsc8GITUBGBdqRliKyxB+HwJqXMDl33qbJvoo8rKvTlrJcE00Kbq/LP4tP18bJUBlFN/MVTJXNxSqcPqPnZjSuQKjo6eSGI0DxuNs0nKtKxLILGnjlfge+U3is08q3nhWLzTsJNQ9NP6sDCvGXazMKwqkCloMkvY2lNiCLcjv8Vs6MiHvU8dd6z0iig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bsZNsy3zYYTqOqQak477TopmgLFA4VkWfkF6ckR3JC4=; b=OoL9+4mjD2mrItE8+gfksFpZhWj380gbaARZ+nUt535luAS9nJyDzEcJQhTYQboziIXYyHKQVKFrXOEWRVkQZx8sHGlnyg2xYn11TsGbCCTWPYeQehIUQTZ5PPkFicXXczzQhp73LC+cUOCYle6aayb/cWH4Hrp/tSWTta+kV4GPheAYpx0/Heg9AG1W2lcZ0zfrN4k3cWXCTGHtm+VPijXK5JvDDm80FS8v2j1iUtMnTeJvQysVwDi9QsSDASFqxip90GG0+bGhY2lyTRJzHX/DI5OZoqcKsH9ShUHYg7z/Wg2NsHfQFrFwuxJSS6Cmj9QO7jdL+OZVEvmTkkBNTg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bsZNsy3zYYTqOqQak477TopmgLFA4VkWfkF6ckR3JC4=; b=KlIvyAFUbGyVBc1AZOH+Lv2HGHRL9quw5GXaTRmjzRr4AX3ZBjl92g4oTQ51egaqqoyWy38TnwGhMFa5+Uu44X73PEJ21O1aEnW4BI+9kfb+YhNNTmRT3oMzBTqrOZ7FBRWVQiVRfBT61OnN6tESDcMYlCL0KylXPc63qIm58A0= Received: from BN8PR11MB3795.namprd11.prod.outlook.com (2603:10b6:408:82::31) by BN7PR11MB2676.namprd11.prod.outlook.com (2603:10b6:406:ac::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.27; Thu, 1 Apr 2021 06:16:07 +0000 Received: from BN8PR11MB3795.namprd11.prod.outlook.com ([fe80::2dfc:3be2:c305:6346]) by BN8PR11MB3795.namprd11.prod.outlook.com ([fe80::2dfc:3be2:c305:6346%6]) with mapi id 15.20.3999.028; Thu, 1 Apr 2021 06:16:07 +0000 From: "Wang, Haiyue" To: "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: AQHXJrU8eAAg3fHwT0i9bvL26gSPlKqfIFYAgAAPIdA= Date: Thu, 1 Apr 2021 06:16:07 +0000 Message-ID: References: <20210401050821.13640-1-alvinx.zhang@intel.com> <20210401052132.21080-1-alvinx.zhang@intel.com> In-Reply-To: <20210401052132.21080-1-alvinx.zhang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.0.76 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.55.46.56] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c583a470-1f92-4e85-6b41-08d8f4d5a358 x-ms-traffictypediagnostic: BN7PR11MB2676: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:345; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zgEsJ9IN+fvU8z/N9AUeJHQgX7wkbOJ/OiA+UJprxxwUggX3fuj51fDclaKmzq/5ezZoUysI9loOqK4VCLzdb9SAxBWUjae3JhCF411dQin5FhCARgIWFmumSQy+dK9ZzUwL2q/cbJk9+4oDPpl2Nwv9WUvNNAfQrnKW9RHEXx99SVYS3lbsUhsvBawQN5C4n0tjrU4nj2iMH9H1hqWPHbI+jiHhHt+G3QVQghCG7rfB2cmDXLhHMXHky4qIktxdQomW5EvrRCt5AdRLqtWNXj1m32lCqtvUd6dt8z0oOaRYpt1NHfZqSkw9zVLdWy8VpeNvHKlddC87LMhoG3n1XOWTrgOo+qJvrEn05sqAZmtiEFuJC9pD+xXGrFh8w+yZXZ+uMhlE7b7IB2yJvYwcIFmrGjgC12FcWtJ/9QWs4blMP4DlNltrq/IPIkFP7oXckmxD/0n3Ih+aMhVxieEBWXqy8YvorYZlLJvsZZy9dIN0+xvBp2glJcxmJUyJ1a6MyDVeA/iiAO8nTGV4IGi/I5Z+Es/LMiNiGL1/pGtaJLW/ZxoGCnuGwHygrsytL85M/lnyWtWcGKICQpeQoZ5TlAvZq1CnwYfXspDTIakI2atZ/1MsIsHNnJ0yq5J/RlWu+9u4/PmuQmJkW/IN9Ju9Oqq70tvAcaB5Z8CoDlr1KIE= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN8PR11MB3795.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(376002)(366004)(346002)(39860400002)(396003)(136003)(450100002)(55016002)(6506007)(4326008)(53546011)(64756008)(76116006)(7696005)(110136005)(71200400001)(9686003)(8936002)(54906003)(8676002)(52536014)(86362001)(316002)(6636002)(66946007)(4744005)(66446008)(66476007)(66556008)(83380400001)(26005)(38100700001)(186003)(33656002)(2906002)(5660300002)(478600001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?AclTiy8cIy9kyT5lQvnPSCWeAIrzYhNw4aAYndYMYofm/OK51OwVhH9azn0w?= =?us-ascii?Q?gPpdNK1KZjXl1kqrAfJ+Zvv4BpHEvg5oQ8OD46n93ek2dSjqoU+tUQne8ZBl?= =?us-ascii?Q?vdQ5/zs9fhPmIOV5Ea+pg5dAHJQaE/EFD6Sgzw5gg5MHNjHSj/EkLGDpGzJe?= =?us-ascii?Q?F63QUuslZb/rxUPk17TcioEGG7+CdNMufdu4FVv8XrDurLHlsXI4fKamsRke?= =?us-ascii?Q?PPVqdHNg6R66uHoM5OE5fwVEB1pvebU05CZ/+PicaUoUFj+11eznIW3qS9j5?= =?us-ascii?Q?tZ86hd805jHAjNUieKWHfFu0CirPk/ssrGdGFM6vpVDMohauuc5wrBr26B/J?= =?us-ascii?Q?LxVzaXm97QtzIlkveM++hNPKwOsJ+gpho9XE+119J33/NazH1ssnrhUyO7xh?= =?us-ascii?Q?srcNCQ8CIdJeByCx07vh+kbGb0tPKM3o3niJ+FDyWkUj7QSXowhltXO/ssFM?= =?us-ascii?Q?zT+rZH2IEzeVd0XTLCgobcf4d2b/wMyp99nUXxB524zZ8PlTvZUATECfWA0F?= =?us-ascii?Q?ZkcGfV7Phww+uiCF99mXYGw9LfvwdKEXdyWSAaH5zF3PX7F2Dx2uDn3ibuDh?= =?us-ascii?Q?cWViIWd8qNGooMmzeE9VYF/jcvVWHX2JcS6naiInR9AXy3JxM+qq9Ls5xvNS?= =?us-ascii?Q?3SBscsFY38Em/R23f1RnqahIiSMmd7kg3KA0fR6oYcmAH8F09hYMuDlWuIcs?= =?us-ascii?Q?MEzKiEiTaqlK1nJytjjHlj1h81vZM13n4+PeOe3Vnv0DeAqanZcEp/ksM9kx?= =?us-ascii?Q?+ywQs/3OWgxEadGHyLS4EcFg3Ley1BDlMl7i/CAzEwuLLApjkgZbuqA0Yi0t?= =?us-ascii?Q?Apwo1UVO1ooTea9ngmB08Xol8ynCGuiEWy9sID6QmhlavnxQp+/kozz/czFg?= =?us-ascii?Q?bKkHjk6RDl9bpn+obhZcPipVqKd7fZXcdrLfIcHR01fbB4NsNZTOXgSjB4Vu?= =?us-ascii?Q?THR1+21qdiQ7IW2B3B6nZpG18gvE0FLcX1DDLTH/kgP/fgWdD7xBnN7pViHG?= =?us-ascii?Q?MX8wXDVNqbgrvEYq9i6L8FDInpfc0Vbr8CaPrvfwj8FxVowl2Z6Q/1pj7ZEA?= =?us-ascii?Q?vzy6W1RRcj9lbgNNK4wb+Ha5XcU5u6g2Y7PsvWXZOz9WuVwJnR6i/iQQr11t?= =?us-ascii?Q?4ZLj0gzHT1+LvSZ8mE5ovUsYuGc8WCMSR+B8gtnMaQZWjkzOiAqr7/PSqOyz?= =?us-ascii?Q?tJbxp6gRIFwRHRSN68Fd6A+oDbBx3tuJUEsuEa0e5dft35/xbzMJf6yncPJ9?= =?us-ascii?Q?g6V8poXd4ey/SsPKH0LwstV7YUdL+R6lq7LohuDht5fgTAMzFWzyn7RDDXiH?= =?us-ascii?Q?M9M=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN8PR11MB3795.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c583a470-1f92-4e85-6b41-08d8f4d5a358 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Apr 2021 06:16:07.7118 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: iduWcCVJJewMCK2fEmtUEUXNYvlF2AcTYDBUIce75XnwFvJo+Yoa5Z4b1UIY8ltVltyt3Nyds0BArI0O2iDX/A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR11MB2676 X-OriginatorOrg: intel.com 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: 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 >=20 > 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. >=20 > This patch fixes the issue of counting a length error packet twice > when counting the total number of received error packets. >=20 > Fixes: 70bdb18657da ("ethdev: add Rx error counters for missed, badcrc an= d badlen packets") > Cc: stable@dpdk.org >=20 > Signed-off-by: Alvin Zhang > --- >=20 > 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 > -- > 1.8.3.1