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 A8306431E9 for ; Tue, 24 Oct 2023 07:26:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9E860402E1; Tue, 24 Oct 2023 07:26:45 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 42C0E4021D; Tue, 24 Oct 2023 07:26:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698125202; x=1729661202; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=WVwV0Ku+/DJnQw6HNTD0meU4I0Mp3xm/AKeDPxsNMpw=; b=luk4T4QesHdOkLKz7dpU1qc6zNfULjDFH8rFIZbSQ/8d12fl6Z5H4pcf KOxsqtDL6tvApabhNQT8Ayj2lNNHwXWfs+3ax0b7Xb6EBWhk9tub3XUjy r0MEJtN7jWA4Oo539CD4moZOlIQrVSzEb0hyjZXQ5Vs2avzIYcn8Ea4wb FCYkpke/mSA15O7CJSF/HImQt49/p5jpVHmMDOHfyAty7eIY5l0eaJ2uX hhWPxOAEV78ImL9874L6v/hFMRsafpN1iPgN8TsdrStCZbMA2NAzIjGPE s2VZlSfoByrwzUrr7czJvz6THKb5hfhF7+TF7zWKyZ6n64P7dyPF96nvi w==; X-IronPort-AV: E=McAfee;i="6600,9927,10872"; a="389836017" X-IronPort-AV: E=Sophos;i="6.03,246,1694761200"; d="scan'208";a="389836017" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2023 22:26:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10872"; a="761984061" X-IronPort-AV: E=Sophos;i="6.03,246,1694761200"; d="scan'208";a="761984061" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga007.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 23 Oct 2023 22:26:40 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) 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.2507.32; Mon, 23 Oct 2023 22:26:40 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Mon, 23 Oct 2023 22:26:39 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Mon, 23 Oct 2023 22:26:39 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.101) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Mon, 23 Oct 2023 22:26:39 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=knhiEDU4AVyHYoFmpaZevWI43rFrMYy7ZvUqzsXDT/hI7WIpk+EMLg2gfsNW4TG5l9BZQ+7vbedSXrZmTKawppmEpOoSX3QDJeE3235XxOQRCBb7bg/HnQA25hssIbPm8l2jTcZRH4QR89xObnYumtEtnGic2J9uggCCCE7Xk1RYawZGvg0YgDlDRC5A12JuToG+hJoc+DyEkMhhEPn53IYtRxf/CFz/gXURyOy+3svgGXk7RXaz/qPjsTwS1R2OP6FzATHoAWplQh7rRwH31LfxME28Bx3gKjwhuSawRsQ24ZwbIZVNN1dI+iOCqkXVKq8h3cvs6/ZEYDYs+TN3vA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=krRFCv9C0aeKbszP/ipYguh7s8G15izypQD81vzN9Jo=; b=OGkMuqOWVl1PRa754ByNfiuMiJnllfVjN2gILaYChpNBtj6e9GpTryQkwAy+m0oECsGBP6EhouA8maxfcx6uMwXym9mqgYnYCzfmwSv1WIZ90GX6NHHwL3i0kjH3iQgBX0gXO2jXUIqg/z0UcujNSROV7zVDfTpsc1Kc6TluzvdX3Hp9FgRssj+axT034tkXRs+BHaUaKwEwEHsdXaIPddkhAr2H1iHhWq6WOoy9B3PCODo2L7etsnIM2s2szQxpI5huejulaKc005zct4Ub/UGP8JUA9aqK5vqR55LUcDKCbpl/piNjvjCe8I2RjlPipV4RGL14dsTLBj3e1wxGPQ== 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 Received: from DM4PR11MB5994.namprd11.prod.outlook.com (2603:10b6:8:5d::20) by SA1PR11MB7014.namprd11.prod.outlook.com (2603:10b6:806:2b9::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33; Tue, 24 Oct 2023 05:26:37 +0000 Received: from DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::2df0:68d8:88ce:74cc]) by DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::2df0:68d8:88ce:74cc%6]) with mapi id 15.20.6907.032; Tue, 24 Oct 2023 05:26:37 +0000 From: "Zhang, Qi Z" To: "Xing, Beilei" , "Zhang, Yuying" , "dev@dpdk.org" , "Wu, Jingjing" CC: "stable@dpdk.org" Subject: RE: [PATCH v1] net/idpf: fix incorrect status calculation Thread-Topic: [PATCH v1] net/idpf: fix incorrect status calculation Thread-Index: AQHZ8clsrRUq3K1EKEe8y+0H90ImjLBXO0mAgAFWU+A= Date: Tue, 24 Oct 2023 05:26:36 +0000 Message-ID: References: <20230928050520.2327245-1-yuying.zhang@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR11MB5994:EE_|SA1PR11MB7014:EE_ x-ms-office365-filtering-correlation-id: 5efa7a66-473c-4b84-29f2-08dbd451cb36 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: oBh/UvxlTRr9j/lr9CXl8dONMewtqyYg4GchJ3FqVWvelcl+WQmoM56CqykMxrdoPeRtxSZnxx9sxBj7+h6Fwkg4hHAn/m6BneRSOspwK/gLzg4PTy3AqFn1AoDzc9dJCCRB50cNNvdJJE8MPPWe15KwFChZeMCQG8Y69T3e8oUgdySmOaa+BKsuCHBOiPdaywC3O13LGJ2o0TVFnJFJMb4owoWbo5rQ8BR3GLq2mJlqls0eJZWTsDK4sil2+uyQIqMFXW5qLGFIfkWTJjo5E2F79SFVhQIn8D4PnRqYVI7kui5tanv7aFynbt2lVYW1ww9nHefccGc1MCn4LSmVnG7yAg5FmZXbafRTPFlu862gwOhA3g8bxT1pL2jzHNtUW3IcEh3ojsQG76CXaPkavirhL8iKZ9n3loHdbnhxR/XWp9EB6Pyp4KE95SIrDwDax+KS68/VYmsneQktEdIvl5xa6QIxkPh9jBbdFhvWmnyla7rC+UFakD0H/KFlIiHFC/b0uTNR2EuthxJlITFewh+r6T4yUGCvlfvoB4YRnkB8/L9y4RBl8AUrGpKRkJaOJVblFrXvzIigP89AIsvenZWI+Bk3NGGZ/U6uz7MCtLOvGD1uNJ3vIQjn5uHGZ/OM x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5994.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(346002)(376002)(396003)(366004)(39860400002)(230922051799003)(186009)(451199024)(64100799003)(1800799009)(38070700009)(38100700002)(2906002)(55016003)(41300700001)(86362001)(52536014)(5660300002)(450100002)(8936002)(4326008)(33656002)(8676002)(110136005)(7696005)(6506007)(64756008)(71200400001)(26005)(478600001)(122000001)(82960400001)(316002)(66476007)(66556008)(66946007)(66446008)(76116006)(6636002)(83380400001)(53546011)(9686003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?OJmQ3az2qpzvH3EnFFEBtJ663QYWUcgsi3mZhbWrRBEOhe33138MwQCS1ouD?= =?us-ascii?Q?MMdwCdmTRgyI8VqL9u7QdvyFMzOZBec77ne+w/siN/90Vl3NNXg5/CsBlJW5?= =?us-ascii?Q?2EYidT6BzFTK79xMcQ5stmBojIy2dasCeem70NfVtnvhXQ1ZLpfVbgn9eAr3?= =?us-ascii?Q?HZL6gx1PEBR5NieEvM3R3v2MSepehf00GiKS/09qfPjpDNv1twxmMrymexqg?= =?us-ascii?Q?k4QF9fAjAanXHaq4DLFNbNETlcKjObKPBJM2potgmHMfHepGFPJn9NSnUH4X?= =?us-ascii?Q?DI/33UpZLXGDFqwNGlE5gxCQjwUQTmscfOb8BASlh1zTFDlsDSa4U0Vp7TNp?= =?us-ascii?Q?wLqwGM9CYiCueDaUHHL4izjHl684fUSq6y2GZ2iyVtzAke1hRnj/IcGDSCZN?= =?us-ascii?Q?X9yp/WYPx1UyWc34gF8k0nGbKXZigkckkeW0Yw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WYAnqv9TxA1iuo0Exg0MBam9JmWUUalX824p5eW3taHI4U3sLG3?= =?us-ascii?Q?1kHY/g+g5cFvoTxPc6LpnqHYRFT2+P6fwCisJiwdolDMrJOwHnYYpYVvG59R?= =?us-ascii?Q?zo0837IN3YI22F9kVOwe+AT85RIpwdEL8uGKwiOE5go0NE5nAQU3OMhxzTjg?= =?us-ascii?Q?fmTt7NAxSY/aq9FMR0g/bcrlS5JyhBPBsXrEXy/d1Ik/cCV22+po5HWcRxIg?= =?us-ascii?Q?xSdILCUOBRaT0PgGitr4yo5InIqDlIy023Yw+Lvu?= 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: DM4PR11MB5994.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5efa7a66-473c-4b84-29f2-08dbd451cb36 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Oct 2023 05:26:36.9792 (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: /cIQs4tZdIbsVBvTos4YCmEGq3SMOJilB2hFOabjAgFtQ2uaAGUnFJEQvJLJG1zGR2GccR4Go+5cwJInPNfoZw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR11MB7014 X-OriginatorOrg: intel.com 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 > -----Original Message----- > From: Xing, Beilei > Sent: Monday, October 23, 2023 5:01 PM > To: Zhang, Yuying ; dev@dpdk.org; Zhang, Qi Z > ; Wu, Jingjing > Cc: stable@dpdk.org > Subject: RE: [PATCH v1] net/idpf: fix incorrect status calculation >=20 >=20 >=20 > > -----Original Message----- > > From: Zhang, Yuying > > Sent: Thursday, September 28, 2023 1:05 PM > > To: Zhang, Yuying ; dev@dpdk.org; Zhang, Qi Z > > ; Wu, Jingjing ; Xing, > > Beilei > > Cc: stable@dpdk.org > > Subject: [PATCH v1] net/idpf: fix incorrect status calculation > > > > From: Yuying Zhang > > > > Fix the incorrect ingress packet number calculation. > > > > Fixes: 7514d76d407b ("net/idpf: add basic statistics") > > Cc: stable@dpdk.org > > > > Signed-off-by: Yuying Zhang > > --- > > drivers/net/idpf/idpf_ethdev.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/net/idpf/idpf_ethdev.c > > b/drivers/net/idpf/idpf_ethdev.c index 3af7cf0bb7..6ae2ac2681 100644 > > --- a/drivers/net/idpf/idpf_ethdev.c > > +++ b/drivers/net/idpf/idpf_ethdev.c > > @@ -281,7 +281,7 @@ idpf_dev_stats_get(struct rte_eth_dev *dev, struct > > rte_eth_stats *stats) > > > > idpf_vport_stats_update(&vport->eth_stats_offset, pstats); > > stats->ipackets =3D pstats->rx_unicast + pstats->rx_multicast + > > - pstats->rx_broadcast - pstats->rx_discards; > > + pstats->rx_broadcast; > > stats->opackets =3D pstats->tx_broadcast + pstats->tx_multicast > > + > > pstats->tx_unicast; > > stats->ierrors =3D pstats->rx_errors; > > -- > > 2.34.1 >=20 > Acked-by: Beilei Xing Applied to dpdk-next-net-intel. Thanks Qi