From patchwork Thu Apr 22 05:34:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenjun Wu X-Patchwork-Id: 91995 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 44A4AA09E4; Thu, 22 Apr 2021 07:50:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 185E9413FA; Thu, 22 Apr 2021 07:50:25 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 00644413E6 for ; Thu, 22 Apr 2021 07:50:23 +0200 (CEST) IronPort-SDR: Ff7ojscXTjq+xKm9HeOQoOxidq2lPf8CM6FPUybU18Pam5b23JpiwLVkv35BSFEQ9usXNQ4gA6 qSMssYA21dug== X-IronPort-AV: E=McAfee;i="6200,9189,9961"; a="182961823" X-IronPort-AV: E=Sophos;i="5.82,241,1613462400"; d="scan'208";a="182961823" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2021 22:50:21 -0700 IronPort-SDR: b2mh06+RmQU4oBipq3Vjm/l4cELwXGxuEEEzYu9gszxNLBrMadmxbp+Q50KDJDZasBb9vd+Lx4 ZBUWu8cT+c4A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,241,1613462400"; d="scan'208";a="421245271" Received: from wuwenjun.sh.intel.com ([10.67.110.159]) by fmsmga008.fm.intel.com with ESMTP; 21 Apr 2021 22:50:20 -0700 From: Wenjun Wu To: dev@dpdk.org, beilei.xing@intel.com Cc: Wenjun Wu Date: Thu, 22 Apr 2021 13:34:30 +0800 Message-Id: <20210422053430.44883-1-wenjun1.wu@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v1] net/i40e: extend VF reset waiting time. 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 Sender: "dev" When resetting VF, VF will issue reset command to PF, wait a fixed amount of time, and assume VF reset is done. However, due to the change of dpdk related library content, the original delay is not enough. When we use DPDK PF instead of kernel PF, it may cause VF start error. This patch extend VF reset waiting time from 200ms to 2s so that VF can start normally when using DPDK PF and DPDK VF. Signed-off-by: Wenjun Wu --- drivers/net/i40e/i40e_ethdev_vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index 3c258ba7cf..13eab317f4 100644 --- a/drivers/net/i40e/i40e_ethdev_vf.c +++ b/drivers/net/i40e/i40e_ethdev_vf.c @@ -1236,7 +1236,7 @@ i40evf_reset_vf(struct rte_eth_dev *dev) * it to ACTIVE. In this duration, vf may not catch the moment that * COMPLETE is set. So, for vf, we'll try to wait a long time. */ - rte_delay_ms(200); + rte_delay_ms(2000); ret = i40evf_check_vf_reset_done(dev); if (ret) {