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 C319842C0A; Fri, 2 Jun 2023 05:25:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 94405406B8; Fri, 2 Jun 2023 05:25:48 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 7CE6A40693 for ; Fri, 2 Jun 2023 05:25:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685676346; x=1717212346; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=qqPbA/IJscQ8qta5gMUqyu7tsJSzSPD2bhPiLjHYbVI=; b=icLsWmplso2vw0YPPV+qeQL3YdOQBFD5QO1zk85Qqv5zYFyPsVfxJI0G tnoMDgUHAO2MVQvkDKab9i+uVVf0nhciV5eOT2tHXQ5MACo4go6xXHRRo PRVHsa2tuKl4EKanjGSN23kXm7IM9M7bYiVlw4hsdSz49S7iG2gWVcZeH /thOLFRf3Y8MOE8W7/Dsos3kESYZo0iou28hqvXpsURwS8urbnfqpnTC8 OYBM2CDNRzVtUq0XFE2Zmx//w5hC7xduXVifXELgVswdTv6lyeulx7yit Gt5Ly+zdiUBOAAkRhde/AfcxLWobrfNpF4TFVfcYiLcsGsiDBk2uVLWsI Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10728"; a="442129570" X-IronPort-AV: E=Sophos;i="6.00,211,1681196400"; d="scan'208";a="442129570" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2023 20:25:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10728"; a="881887450" X-IronPort-AV: E=Sophos;i="6.00,211,1681196400"; d="scan'208";a="881887450" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga005.jf.intel.com with ESMTP; 01 Jun 2023 20:25:44 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 1 Jun 2023 20:25:44 -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.23; Thu, 1 Jun 2023 20:25:43 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) 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.23 via Frontend Transport; Thu, 1 Jun 2023 20:25:43 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.46) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Thu, 1 Jun 2023 20:25:43 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Dz7s7auMZmdKwSTO8QXkSFZwmvbmmpF8PUPPWcU5OJLrxgugzZP+SVl5kT1UuCgpyEVdAL5vwAHJgrI+9Gkm8ALpD305/Xx1lSXiMjWeGVdIYht6B5h8AZiq1ScL1NbKgaEe/TlyKzbsw6QGaPJEarIUvZ9/7tvEj0Jn2qQ7l8HurRQxxpPs4xiy1PRVmivHXLk8k+lrWDMobDeYbtY23T/TL5TcXxLUqdvUILG/E7+kciJAEXa8xiE9//x3qXVp83/NIdrNpKSx5Y70R3EpXs9QPX8c5mrcNx0ryqCKkk6BU3lt+aSak7MFCHvzlXBtgxbWbvtVsJROhjLyTssATg== 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=qqPbA/IJscQ8qta5gMUqyu7tsJSzSPD2bhPiLjHYbVI=; b=TvU0xhheHN2T4nncLG91YLnDBvkoKp7Pdmjdwt5Oxmsug5mk6jix9bO8ySIHhzrOT1IxUgZRt+Wqjs02LAIC7uyS03Zbpd4fXPASRaCm+clsdvyIQCiUaOilPc/Fae7bH4VNswsJ3VOz+EJnLfvkFmRC21K0w+ZMH8oBqBEVN2iS4qfittxztfapv3q9l9j5ttvpPKwp1lP5eGxHoE6hS77lopeL9C1IKb1/ljBK+BLPqE42TinR/n9mEdN2ENFNqr5B97LHy4r/a8jVY8b69Mtwz35nOb2nxFIXoqglX1iUAG2iIYE2EXlTQvq7ooaGeecaQgnhNd+rofLiEYXeWQ== 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 PH7PR11MB6608.namprd11.prod.outlook.com (2603:10b6:510:1b3::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.22; Fri, 2 Jun 2023 03:25:41 +0000 Received: from DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::e570:d9a7:df1b:1589]) by DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::e570:d9a7:df1b:1589%6]) with mapi id 15.20.6433.024; Fri, 2 Jun 2023 03:25:41 +0000 From: "Zhang, Qi Z" To: "Zeng, ZhichaoX" , "dev@dpdk.org" CC: "Wang, Liang-min" , "Wu, Jingjing" , "Xing, Beilei" Subject: RE: [PATCH v2] net/iavf: add VF reset check Thread-Topic: [PATCH v2] net/iavf: add VF reset check Thread-Index: AQHZlPqEjgnWVZRm9UiUVsjcEPcvIK922bnQ Date: Fri, 2 Jun 2023 03:25:41 +0000 Message-ID: References: <20230525021737.1921818-1-zhichaox.zeng@intel.com> <20230602023822.2370902-1-zhichaox.zeng@intel.com> In-Reply-To: <20230602023822.2370902-1-zhichaox.zeng@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_|PH7PR11MB6608:EE_ x-ms-office365-filtering-correlation-id: f7ed4c08-5c1c-4691-5a0a-08db63190b07 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: fNhmGCfGzmyWqoaKpluqJkC+BcLfhyV7hp2JDgLeLLf3nxFsW4BaPLxdCCiESXsx9x02UHH5ON1p3T8pG2krWmxg8D2pPoNO4furJ/E8fWZZxmQ2gFd1AoLYKaaniE9O4cNSyxIPbnmFXACG9+r//BLn0lRZ5K7GwynEdViLnvGvz2oIyjIJG7pzK3R1vRBSCIFhwO6VBPU7yOLtnAeOX9V/2760Vzr2hMNkipW1hYpmvhtp2VrB0BzWXClfEuk296u+4EAhm6TXDcijCcMQuQbk51m9zj/xqoDiqEPuRQy8UntjtH/doUd4FWiUdSPSgLaff+9ta1g+yGZCJrU1dVVTT5UG1UrnBsTKcqQ8LKwppSQfIqi7ELCVyuO0MS3eC6mKIf9iIG5SLd1DH5IId/YckMVK/nJdwPCxe7xtH4QxsYXrUe9IMo2c/MBCo4A3mwxoW5hbZ/bInBvFIih4wUWZ0BKOiKVvHQsXpfvDF9WHqb/ETfgJcpdYBhSxx3Hey4zTtMbyfsr3nuJUWOELDa3OvC+epGk+cAUJyMmgxYJs2XfdAlB0X58b6+0WSxJpsVhE8+8h9tX5V33xdX8hKbZTm/boVEvu34Qoz/JC4o8P5My3TC+0FBH59v4784GE 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:(13230028)(396003)(346002)(39860400002)(366004)(376002)(136003)(451199021)(71200400001)(7696005)(38100700002)(83380400001)(41300700001)(53546011)(6506007)(107886003)(186003)(26005)(9686003)(54906003)(110136005)(478600001)(66946007)(64756008)(82960400001)(66446008)(66476007)(76116006)(55016003)(4326008)(316002)(52536014)(8676002)(8936002)(86362001)(5660300002)(4744005)(2906002)(38070700005)(122000001)(66556008)(33656002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?/OSon6FGwGqzCsdmShtyP9GUP5oqWTdaeQWa2++YMTyuZdu2H3QJ3lWs/gPY?= =?us-ascii?Q?ADFVciGUZ1IbZlScNeSFEpMZ8ATKMA2zfOkpP6Tl2tMz9v7uAj+wqBm6Kfxo?= =?us-ascii?Q?gdmOfOEYokjX3IlhmlliYH9GWctEhRDLBdSC9F8IYzH7Phew0KzDWTiD7C2Q?= =?us-ascii?Q?yhBwn96GvDcaJRRF94iLkvB/vilXq6TD22k6cFh7dvgH5u08cDhpQcvRxjbc?= =?us-ascii?Q?U14FPW/uKF38tQlWrNYb2oVJlSieNDZKX1KgHpyNfGrfwKQ0LI42UqqN3I4T?= =?us-ascii?Q?uBq2HO4UKA3hj33llwXZQqIowwPeJzTNtjV/InIMFXb/teaK7wJ0JtkAJp4C?= =?us-ascii?Q?5COv+kn60aaTxaoJ6cYP7nbD0tcJJ0xSlAmePulfIQqmf05l3gXD1hcW471T?= =?us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0L7OZxWW6QjU70GnkTL9K9?= =?us-ascii?Q?1REjE6I7CLsOWITISLIm+OZY01HaNcGrMNuBa28P6aqzy7pRLB+OlxO2kT6h?= =?us-ascii?Q?g2mzteqgSSAQV56+wJJavP5tzfQXcb+MrflR2OdJKswKuBKIINxBj1ac7FaM?= =?us-ascii?Q?faEGk394y7njNZpk+nNPy26cF4WWqduXdNuwaNVwzb0CWN9GaPCcr5yW575I?= =?us-ascii?Q?znA7lUFM//F2JF5SH1310I6tLuBCbPmXJlaTb2R/N5TDvkRXJElZcGTngZBh?= =?us-ascii?Q?WoEIeJ6vTvCWM4NERV9dnPiC/1HxLMOK2neXgsN1?= 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: f7ed4c08-5c1c-4691-5a0a-08db63190b07 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jun 2023 03:25:41.3276 (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: 0vY4QPWyf1L3mNP3XuoXjlSwETXwwPBbBl74+BrDe71KntnkR+hN141HXEf7IteugCGVMTLBQaQuk09KcQbXDg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB6608 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Zeng, ZhichaoX > Sent: Friday, June 2, 2023 10:38 AM > To: dev@dpdk.org > Cc: Zhang, Qi Z ; Zeng, ZhichaoX > ; Wang, Liang-min ; > Wu, Jingjing ; Xing, Beilei > Subject: [PATCH v2] net/iavf: add VF reset check >=20 > In the current implementation, after application calls rte_eth_dev_reset,= it > has no way to know if reset has been completed, and if the virtual channe= l > command is called before it is completed, it may cause the dev to be > abnormal. To avoid this issue, an uncertain delay need to be added. >=20 > This commit adds a VF reset check before the dev_reset to inform the > application not to invoke any virtual channel commands, to avoid making t= he > device to be abnormal. >=20 > Suggested-by: Liang-Min Larry Wang > Signed-off-by: Zhichao Zeng Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi