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 D6B0EA034C; Wed, 27 Apr 2022 17:00:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 229C942852; Wed, 27 Apr 2022 16:58:56 +0200 (CEST) Received: from relay.smtp-ext.broadcom.com (lpdvsmtp11.broadcom.com [192.19.166.231]) by mails.dpdk.org (Postfix) with ESMTP id EFB9742815 for ; Wed, 27 Apr 2022 16:58:53 +0200 (CEST) Received: from dhcp-10-123-153-22.dhcp.broadcom.net (bgccx-dev-host-lnx2.bec.broadcom.net [10.123.153.22]) by relay.smtp-ext.broadcom.com (Postfix) with ESMTP id 7C680C0000F2; Wed, 27 Apr 2022 07:58:52 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com 7C680C0000F2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1651071533; bh=9sTmEsOyJ2/HS9Qx5GFLCi8kHePF0HhM5DnA6l30Z+M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MSw6QhNNutbszrSVw/9J7k1/VEw6iOr59hsvn0SsuUdMe8sqrWXOtM3315/6ToPKC bAUf036MEBkPYPrsHeqegR+QRqFxsaM8u1hc4WSW95Ta67C3PS2xIwIRKvDhVJEJKk mBOdtlHi6cykwIfPA1WEDlRqrUtJqVCQTGiWl2WU= From: Kalesh A P To: dev@dpdk.org Cc: ajit.khaparde@broadcom.com Subject: [PATCH 17/17] net/bnxt: don't wait for link up completion in dev start Date: Wed, 27 Apr 2022 20:28:21 +0530 Message-Id: <20220427145821.5987-18-kalesh-anakkur.purayil@broadcom.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20220427145821.5987-1-kalesh-anakkur.purayil@broadcom.com> References: <20220427145821.5987-1-kalesh-anakkur.purayil@broadcom.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 From: Somnath Kotur Invoking bnxt_link_update_op() with wait_for_completion set would result in the driver waiting for 10s in case the port link is down to complete port initialization (dev_start_op()). Change it by not waiting for the completion when invoking it in dev_start_op() Signed-off-by: Somnath Kotur Reviewed-by: Kalesh AP --- drivers/net/bnxt/bnxt_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index abcb534..0f0f40b 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -1608,7 +1608,7 @@ int bnxt_dev_start_op(struct rte_eth_dev *eth_dev) eth_dev->data->dev_started = 1; - bnxt_link_update_op(eth_dev, 1); + bnxt_link_update_op(eth_dev, 0); if (rx_offloads & RTE_ETH_RX_OFFLOAD_VLAN_FILTER) vlan_mask |= RTE_ETH_VLAN_FILTER_MASK; -- 2.10.1