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 752F442545 for ; Mon, 11 Sep 2023 02:43:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6C316402C1; Mon, 11 Sep 2023 02:43:13 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id D6BC14021D for ; Mon, 11 Sep 2023 02:43:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694392992; x=1725928992; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=WI0WabxSIqKVEIfau2+18jV9s0g0xLBHYev1FTD5paM=; b=E6R1cNwCZsfxyZ3i771+QJ5E/BHMqIjCws/w2nEmrdd0VH8rm7JmeX5w 3zSTAho1MfLWUc6mQrD+EvM7F3z3T4YpW76ZPtGZ797eSp7HregTAXUZ0 egR9vpM4/j+b3Z/2b64mkMK9XNPNV8ybGEBvg90J429qgvHy9q22oMYhy 3yhpNvnZb0ovPlgvlWONO822X1KrWvf8EuR4qUkx3Ay1XQxH0TuKMFx2c K8LMFgZMzcVCA9hPCQgi4NFFeJ6+WbvWxCTJYNb/Mislzx1ynhG2SpnOi OTLY75o1FGSduODYBv965/bbkw1u/WEUDjVC2cAyPyoHXfDwm0VaDqcs5 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10829"; a="375320048" X-IronPort-AV: E=Sophos;i="6.02,243,1688454000"; d="scan'208";a="375320048" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2023 17:42:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10829"; a="989899035" X-IronPort-AV: E=Sophos;i="6.02,243,1688454000"; d="scan'208";a="989899035" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga006.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 10 Sep 2023 17:42:57 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Sun, 10 Sep 2023 17:42:56 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Sun, 10 Sep 2023 17:42:56 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.168) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Sun, 10 Sep 2023 17:42:56 -0700 Received: from DM4PR11MB5994.namprd11.prod.outlook.com (2603:10b6:8:5d::20) by CY8PR11MB6891.namprd11.prod.outlook.com (2603:10b6:930:5c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.30; Mon, 11 Sep 2023 00:42:52 +0000 Received: from DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::8a49:15a2:ab69:91c3]) by DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::8a49:15a2:ab69:91c3%4]) with mapi id 15.20.6768.029; Mon, 11 Sep 2023 00:42:52 +0000 From: "Zhang, Qi Z" To: "Zhou, YidingX" , "dev@dpdk.org" CC: "Zhou, YidingX" , "stable@dpdk.org" , "Xu, KuanX" Subject: RE: [PATCH v2] net/iavf: fix port stats not cleared Thread-Topic: [PATCH v2] net/iavf: fix port stats not cleared Thread-Index: AQHZ4TNm1J30VqlTB0CgzoK/58oHCrAUz0AQ Date: Mon, 11 Sep 2023 00:42:52 +0000 Message-ID: References: <20230830065451.2976544-1-yidingx.zhou@intel.com> <20230907023942.3150495-1-yidingx.zhou@intel.com> In-Reply-To: <20230907023942.3150495-1-yidingx.zhou@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: DM4PR11MB5994:EE_|CY8PR11MB6891:EE_ x-ms-office365-filtering-correlation-id: c922e596-4fe7-43f4-68c5-08dbb26007e5 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: dEZzfF5cBjNshvtV+OLMLF6OEoAy9j5gICLB+NF5o18T4BWADlgTUo7S0xcKEuOk9nPDfrh3ZMPU6aQ9xJdQnOP+HnHg9PdGwjwPx5+qCqZz6Rjkz964pc2xYaaGQ0+MCE84JfY9Zk+WkCDucB9fekgTkkhBbEZfUYFkDxyxJBoKtz1vZuZUdgRr4O5OoVmOvcY7LdUKL3R11guCmHhJRYpeNqsj+8rDf7WFAAGgspe0ZE5sMD3RkdngVRXB+IYimvwgyHuXKFagz0SB7unwGUdA9zgR9mvVXCPMVyuSZ8V0AkvIeuhifvdJlkWZK0hY/3Nr+0Eh5A3a6+qLKPSQchbQfrcmYh+NzeV0dwqJxwc7JRuQx4s79AvTaOvgtQnzAvMXjo2cZD7JRHJYm2z0l5qRHzXy+BNszB9KuraZEqcBM2fPM9p0GDRWbqs5GsTh7QgeNv7+DiVFPZRCYsvOCHXdaWM4Pb4OJuNMHCm3odEvGPNXW8yVSgUKm/QNcFmbKTMZKOa7Kvd5R8k2gjacsrLU3eqov4MwnaBgbtmgGTYGgK6+muSYalIarIMErJ8RqkeTbniCm1B1comWHVHh4Gqq7YBOEJXJ+eqPWVJRgeoM/XxECvrxRKVmgPRl/s/y 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)(366004)(39860400002)(346002)(396003)(136003)(376002)(186009)(1800799009)(451199024)(82960400001)(122000001)(38100700002)(38070700005)(55016003)(33656002)(86362001)(478600001)(2906002)(110136005)(9686003)(71200400001)(53546011)(8936002)(7696005)(8676002)(6506007)(4326008)(76116006)(52536014)(5660300002)(66446008)(66556008)(64756008)(66476007)(66946007)(316002)(41300700001)(54906003)(83380400001)(26005)(450100002)(107886003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Ld8zALzaEHTHEYl87BM4AaNtbWBAGiITxNHBj4M1MOWoq4+KCNj+Ppq7yoGJ?= =?us-ascii?Q?oiOURmSfo7nQEKlnrbCc3LXOnUXVjIN9JayjPyPUgohILUuXTi2H7QC4Z8K7?= =?us-ascii?Q?kW/VE5kdP4MBbcQ4cvXot2n3N3OZ3fiRyOD49xdlm9fTT2aw6fYM4j3cqUGS?= =?us-ascii?Q?EWAfFQC/+l2b2I2hXL1Ikram+4mH/V2uhvnvsqzZY0JWI2LHAEpwLn7QXxjf?= =?us-ascii?Q?fl6oRpHG/gaqAy5hsYBkXNq6LEYZvZ302+6A9Wwg23WjqIzDrtwMTG0Sr0av?= =?us-ascii?Q?gXwE4EnnAlbK4R/63WTqvHVCBE1Fe3gH+uXC4ZVMcz1pPE0M4cQ3hPI+kA/5?= =?us-ascii?Q?oznUmwKQUqKz7b73iTBIxq9NZ+JEZs5lO7ni52BOtmj0fN5qTBVJnrGiisnk?= =?us-ascii?Q?QpYxxkqxQMDV19bSfbgTxa+BDUWZy+IVLCZceZxJ4x2P11ny3TN/PQRvCyjJ?= =?us-ascii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XO5/bGgG778ofNd/NvV?= =?us-ascii?Q?A/UiWqhI5PIbo86lq0Nlhwy1Ur99fIl/kqyMelqc3ZNepTzf+Y8bG+FfM3S9?= =?us-ascii?Q?py8aems2mT3fZkIVUHdcZnLI62QMBFWaqTUWPjzYTxtPYKVyRcv85bBcW86t?= =?us-ascii?Q?t/DEtG5VT9Ujr3ecWSNEBKAaUvdrhiOL/nm758mVkWgiZFr9/5sa73FWa0ej?= =?us-ascii?Q?Jj9d8aocV7Xf1CjCuoiWHko4IohPKuyb5IjNmf5q?= arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MvkptJQJXcYtAjF4vN7iRRnDYYej71Efdo+7QwWmM3r7rnTad7V2nuRv+gke74mZ2tOUYnuZMBE9hJMIdnoEF58wCzqmgLHORwrMxIZ9mFtH0nAnJB8vfOPUeTBAFuPYeNAtfB1oviJH/YmktymEa1bnWwTWmWw25TyugCQnMGh8qwC4Vfig9ahbxb5tIzjWukxi38zlzSmovlYSFCeau4YFsnPIYaaHvLOjO0Y9Qn8DlpYrb6l8vaVkaT7wX+E7pXJkaEWqJZia1IX/2PPD1WSLWIVRswo+jrU7ZbTEYvt4bLE8dE7CPW86iKEJjgZs0o4mBDviiPKSK1u6xJbxlg== 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=ET+cJQG+zc9RXGdIyslbepd3q6v72WzFzDxhzscv9gs=; b=KU6iB3vhbH32SO01r4N7Wo+9T/2mNmrxiPclUebj7M0Yu39WFMnBTOONcHFxegzE52pEvfSpZL8Zn4kLlFCwqwop+yr/wCs6UAamTd8ACF5/zPFjm1FQe8p+fFtmeoQlCasQYc0eUxsLQ/SwRuoMuPX8fQXPq1W1h9L54jYWXAz+TtDQrUv8SwPGii/FqDRoM3bcsNHCvvNfqmN9eJ0lJ8/GrYts1jugPTdpzOoUwj4ATScxFsC1dyMEz5yZezMXf1QWiRoNOkTL5tL6wMKtqvjou9NCK0OFr3MOCCg+n7nqlBL6UXDxDzpn8oAWkbkICYsn+VauyB6h/1hmbrzvPQ== 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 x-ms-exchange-crosstenant-authas: Internal x-ms-exchange-crosstenant-authsource: DM4PR11MB5994.namprd11.prod.outlook.com x-ms-exchange-crosstenant-network-message-id: c922e596-4fe7-43f4-68c5-08dbb26007e5 x-ms-exchange-crosstenant-originalarrivaltime: 11 Sep 2023 00:42:52.1848 (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: Ry+Bt71SWF2YJ4hCWvufFoBmrFlUZOnAl/Rc6hut8x7P929ePmWpSWJMJVOPYR5S3vv69DVxtisdKi/qfcyVlQ== x-ms-exchange-transport-crosstenantheadersstamped: CY8PR11MB6891 x-originatororg: intel.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: Yiding Zhou > Sent: Thursday, September 7, 2023 10:40 AM > To: dev@dpdk.org > Cc: Zhou, YidingX ; stable@dpdk.org; Xu, KuanX > > Subject: [PATCH v2] net/iavf: fix port stats not cleared > > After VF reset, kernel driver may reuse the orignal VSI without reset its= stats. > Call 'iavf_dev_stats_reset' during the initialization of the VF in order = to clear > any statistics that may exist from the last use of the VF and to avoid st= atistics > errors. > > Fixes: 22b123a36d07 ("net/avf: initialize PMD") > Cc: stable@dpdk.org > > Signed-off-by: Kuan Xu > Signed-off-by: Yiding Zhou > --- > drivers/net/iavf/iavf_ethdev.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethde= v.c > index f2fc5a5621..24c6342dee 100644 > --- a/drivers/net/iavf/iavf_ethdev.c > +++ b/drivers/net/iavf/iavf_ethdev.c > @@ -2721,6 +2721,7 @@ iavf_dev_init(struct rte_eth_dev *eth_dev) > > iavf_default_rss_disable(adapter); > > + iavf_dev_stats_reset(eth_dev); > > /* Start device watchdog */ > iavf_dev_watchdog_enable(adapter); > -- > 2.34.1 Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi