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 9CC16A0579; Thu, 8 Apr 2021 16:35:17 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 34F2D141051; Thu, 8 Apr 2021 16:35:17 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 6F83F4068B for ; Thu, 8 Apr 2021 16:35:15 +0200 (CEST) IronPort-SDR: ZIXYJUQ/nJU5O4J+AMWage3lqiO+vQxfUyr/wXT0qgvtG/oRhii602uIlvi5v9kcUfcC2J4s3O LPPZr1y+VGQQ== X-IronPort-AV: E=McAfee;i="6000,8403,9948"; a="173635393" X-IronPort-AV: E=Sophos;i="5.82,206,1613462400"; d="scan'208";a="173635393" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 07:35:14 -0700 IronPort-SDR: zQHsH5FzQPX27cAdPyjNb++YddRZMqaSacvsv4eofZ8+iCJiB6psADYqWlUsXflI8j5Nhkq2nS UpaowAoXpP9g== X-IronPort-AV: E=Sophos;i="5.82,206,1613462400"; d="scan'208";a="380275301" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.203.5]) ([10.213.203.5]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 07:35:09 -0700 To: "Min Hu (Connor)" , dev@dpdk.org References: <1617108805-9096-1-git-send-email-humin29@huawei.com> From: Ferruh Yigit X-User: ferruhy Message-ID: Date: Thu, 8 Apr 2021 15:35:05 +0100 MIME-Version: 1.0 In-Reply-To: <1617108805-9096-1-git-send-email-humin29@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] net/hns3: support wait to complete in link update API 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" On 3/30/2021 1:53 PM, Min Hu (Connor) wrote: > From: Huisong Li > > There are two APIs in ethdev layer to get link status of device, namely, > "rte_eth_link_get" and "rte_eth_link_get_nowait". When the device link > is unstable or auto-negotiation is in progress, the first API supports > the function of waiting for the NIC to link up, and the maximum waiting > time is 9 seconds based on DPDK Documentation. For the hns3 PMD driver, > the link can be established within 2 seconds. > > Signed-off-by: Huisong Li > Signed-off-by: Min Hu (Connor) Applied to dpdk-next-net/main, thanks.