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 53F95431E0 for ; Mon, 23 Oct 2023 11:01:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 40CB040270; Mon, 23 Oct 2023 11:01:00 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id AA1DC40262; Mon, 23 Oct 2023 11:00:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698051659; x=1729587659; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=n1iAxSg7M9a9a/bgV6eGVWuUrfyix32p0tji8oKTg6A=; b=QXYOCasPaw1CNhzEaXlzMKfJRpJdbH1XZ41vJupPPRVtkyhu0jEnEnF2 ovysFijlCjmPJsidNla7Sk4qFHgO4O744OhSrP+Wfjd22UmHohLa+7Ugv nhg0AmF6yVS6QXQDl17g7JiEGZiHA0Vgwwp4gSm1aVVasLN3q9n90oZ8q OaQoQXU/dp5BrZM18MOqZKzae2+g4mN8JwZR8SdYyuVpgQ4Ufnsn/GT2B 50VIRLryi6UqKMuT3CiL7b+6sasSe101eSbg1A2SaUL+fflpKNVhcfR++ mlDwASChQh1AQN8fYGdvv+TZF2fnYlismr7/N2QITIZ/uAZ+PYtiMlByj g==; X-IronPort-AV: E=McAfee;i="6600,9927,10871"; a="5421116" X-IronPort-AV: E=Sophos;i="6.03,244,1694761200"; d="scan'208";a="5421116" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2023 02:00:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10871"; a="787412184" X-IronPort-AV: E=Sophos;i="6.03,244,1694761200"; d="scan'208";a="787412184" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga008.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 23 Oct 2023 02:00:57 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) 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 02:00:57 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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 02:00:57 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.169) by edgegateway.intel.com (192.55.55.68) 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 02:00:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DnTdv6UJc9OfHktP+bSmz5z5M26AmdFy7bytsTemoOw1NTK7wadNs0sm2UA69D7Wp8UqwkJolrX8qgEInae+VQ4mSINMa/+8e5oFUmhrBiN4vWhjZgt7DHVWahSHokKHmlDqkvOm7tlEQWDvdGPK2bb5Lk87ZPSoyg+MLda/w82zg1ybj0kYRWH1nn3EbRqkAQEboECUNyBvciJA0bQmC5o6GI1je+L6S5UWDUpMbRWGaLNo5999LO7bqewgma+iuJQxesd//w8X2iW9o8AhAmlBbXIiTFBeeEwtmhiKPeXpIbpvshnUgBvwIflG9+QSS7/xDyC9FerCWTOpnrwFKQ== 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=7zvEoIC1R43q66g0yPzinFXBErgSgY3HIOuT2dSWDPo=; b=Bjpf0qLSNznCydqmiNAE3Dkbpn+yW7Wo/ylGZU6Ee54Xo3UtutRoLwDucuFuKNeqm8URkBVnqKRud6C/Kt8SxndAtVCxodmzEFHpIRdl+EjFfCuODcRwuGrlb36KSiYp5BDH4UC6EMe4yEFLSHyEocf6P5iG4KTU/URj+FNA4ayyTamwrCyU9qZL7phpWtjf/IW3A0eaWBOIU2FiW2UITlxdwbpSOpQAPL8iluWLBA0G+swtV7ULu69h+wsUznSsQTMpHQV/HGuCha/6x4b+2v/198FdWozR1YSxPvzprVU2C9V4bpn5aFCThImsQLxEJgN5/pLckVI/0lLdsDj4LQ== 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 LV2PR11MB5997.namprd11.prod.outlook.com (2603:10b6:408:17f::10) by CY8PR11MB7314.namprd11.prod.outlook.com (2603:10b6:930:9d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.24; Mon, 23 Oct 2023 09:00:55 +0000 Received: from LV2PR11MB5997.namprd11.prod.outlook.com ([fe80::ddc6:d6ca:6a9a:dfbf]) by LV2PR11MB5997.namprd11.prod.outlook.com ([fe80::ddc6:d6ca:6a9a:dfbf%4]) with mapi id 15.20.6907.025; Mon, 23 Oct 2023 09:00:55 +0000 From: "Xing, Beilei" 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 Thread-Topic: [PATCH v1] net/idpf: fix incorrect status calculation Thread-Index: AQHZ8clsdiWrjFwkKket7bAnnUbaF7BXOz1A Date: Mon, 23 Oct 2023 09:00:55 +0000 Message-ID: References: <20230928050520.2327245-1-yuying.zhang@intel.com> In-Reply-To: <20230928050520.2327245-1-yuying.zhang@intel.com> 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: LV2PR11MB5997:EE_|CY8PR11MB7314:EE_ x-ms-office365-filtering-correlation-id: b7f4d4df-4457-43a5-4926-08dbd3a690fa x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0HKIMox7Q9Qxy1XTPf+CnWdpHi+uqY1VXIzDvv2dLNvKW+JoPAAnScHhXoCeytFUvUX8HHM90ec9xxdhE9cBlu9nZcHR+Z9++2BJr1DRkatP/7rnLXc1wRjKeUbtyGNr08v7cS86jKnccQ1n3mUoBcjPq7xh665a2RKvRLeAdz+cksn9xG9NajIURztSTH8xunrPMl+yye2TMW9Kuz3dzSO3RDRgvsfnaARQ4LfFfvGfPCShmqwM5AQu5sJeFMz6oB8Ixcs9xGYLYzOTV748H6J0y1R5DMrVq/tHoXYSK45ELQbxTodae5kqV2eHq5xC5NB2+12+q3z4Q2tcQE2FrXc5J7eHJY4EstuUcxXH89zFzfuD6Z1grfV/5jWKr02rmG4BDRaeuB/4J85hMk3mtqT8Nv7IeuWlAOZ3Y7pYlUbcqMytS9w7lSFUYXn9cr/PdCgMJzOEsOEJ9lb2es4nEAx6+Rni2w8Ur0C7PjDLTe/9VSD2ivqW9ke+IB8nzsPJyLo3nD+tjFhz0Ikk8hNzhZNiXGNVtFRzsGEdlKjmSTI5eK1iE5h+Yf2hBCEv7f5bkmoRkaMhXoJhD9tTrYeIuk5/JNAdarAtz28OzR1ok1C6GH0XNUQ5N2hvAtc4SAzs x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:LV2PR11MB5997.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(346002)(366004)(136003)(376002)(39860400002)(230922051799003)(186009)(1800799009)(64100799003)(451199024)(8936002)(33656002)(55016003)(38070700009)(4326008)(86362001)(38100700002)(53546011)(9686003)(2906002)(5660300002)(41300700001)(7696005)(122000001)(26005)(6506007)(8676002)(83380400001)(52536014)(82960400001)(71200400001)(478600001)(316002)(66946007)(76116006)(66476007)(6636002)(110136005)(450100002)(64756008)(66446008)(66556008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?peKVn050kp/Wc9uW4YZ7dAy8GmdR5X5/hsoYiilly31EWBTgOuvL8a6dI8st?= =?us-ascii?Q?+Ve6k6dXUFpHgNnRxnBnck3MFUyyyjadgIN0jOEN1GEySN1a/BgQdY4DQCTg?= =?us-ascii?Q?a3VBF0PHet9rZhPOc/Wkm307PxbfCG8wMQv415M+dAS2/VSibUSKB6pi3E9R?= =?us-ascii?Q?om9ZuQ6ekdLKFNYkWVtN/id85x/JKT27PCZbGAACWScQD/uFTFS5vrawQtHp?= =?us-ascii?Q?4qjYjvJnz8q2OgY6VYMGmRW2qBtZ4J9KAbB1CuldUHz1mkYAzWKuZguMcbxW?= =?us-ascii?Q?/+q4203CNA3Z7guf4NmK6qlPEclqMvtW23uD/si+Kv4H2EVDh5QFlFfGRuSk?= =?us-ascii?Q?EqkIX6YwMWy+Hoo3+TwjQqg71D22czKYZSdmOSkElkNsno0uI1CiwelSSHZW?= =?us-ascii?Q?NKMncjFPzNC3ZOn+yxHz3wYxttrIYNGdeLOhbLxyz7OriVitPSCetFNqIePH?= =?us-ascii?Q?DRj86soFbFunbcELykQMiP10jKX2Js433CkxQ0Cuu5/pWF657Wjsv5ir56H3?= =?us-ascii?Q?5JlP8nVj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73/09?= =?us-ascii?Q?41UYg2e1jRYTJtLxwqy83J5iZyHNnNxP2NGLgDXRcIEU5KQ+kyruAdvoZ2XO?= =?us-ascii?Q?d6jKaHJSyXTVrcwjyInYxagmBpfNXC8pTiovQX2FynbftQl+gnB4uQtjbHG6?= =?us-ascii?Q?xE2n5DouUczKGAStELSM3tc5nTYAqD0sH1gAuEM+?= 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: LV2PR11MB5997.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b7f4d4df-4457-43a5-4926-08dbd3a690fa X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Oct 2023 09:00:55.3241 (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: E90bJXgtSyykIjDf/hXnQjNoXbijma50uXJe/5hFCwTCZD3XKmk9Jum51lhF6V1Vf5Gc45zgypFnDPE4ztitBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB7314 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: Zhang, Yuying > Sent: Thursday, September 28, 2023 1:05 PM > To: Zhang, Yuying ; dev@dpdk.org; Zhang, Qi Z > ; Wu, Jingjing ; Xing, Beile= i > > Cc: stable@dpdk.org > Subject: [PATCH v1] net/idpf: fix incorrect status calculation >=20 > From: Yuying Zhang >=20 > Fix the incorrect ingress packet number calculation. >=20 > Fixes: 7514d76d407b ("net/idpf: add basic statistics") > Cc: stable@dpdk.org >=20 > Signed-off-by: Yuying Zhang > --- > drivers/net/idpf/idpf_ethdev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethde= v.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) >=20 > 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 Acked-by: Beilei Xing