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 EB6A1A0A03; Tue, 19 Jan 2021 03:26:20 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DA5E8140DA5; Tue, 19 Jan 2021 03:26:20 +0100 (CET) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mails.dpdk.org (Postfix) with ESMTP id CCC5E140D94 for ; Tue, 19 Jan 2021 03:26:18 +0100 (CET) Received: by mail-pl1-f177.google.com with SMTP id e9so5488362plh.3 for ; Mon, 18 Jan 2021 18:26:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VgDkywZ4mvgB8H6XOB1xirkJ4CqXH4awgu45z2zw46s=; b=fV37lyH744y2/yA2eGCpdfuRVu+bTeCTYdsBmZ9TyNicCdyb6z8Yxrs0AN0vfx90tL q2cmB5RGk0/ZVxt4QMzTwzjIss7jN6SzhSlvII+vM0PyqCByezrSaBZ0/bZZhJqF0Mb6 /Jjd74mB0+0Zfu6CKXbR8ldoIu8siOxJeu0bjVe/Vzrw5Pq7P8stm57zaWkkJ2v+w9zE zCYHh+TwsD9QYP2TCpRiCpTDmUZ9SbhxV+Y0LdtcA+5nbGCtKnWGw5fJLMQ4gVGT8Sl3 rPU17Dk9Q5gmGhF/4fJyU+QF5XUC2IbfgmhYfPuYs3kNlxCuLmCK1hXqjHIwrC/hUtRA NM/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VgDkywZ4mvgB8H6XOB1xirkJ4CqXH4awgu45z2zw46s=; b=k04cxFtYG7CRHU6aw15VYsbJHRSX3TQzUGY6xenR+9hiFDjX1ZlPwUW63mLFjBw8X3 xtYjG2ToTC8X6r1k48ttvVgsI/jd5uGhldXcRmwEzk7l6pSTaAvOhU9lHtKfSCmBXMd0 gnUhy+8dNlghJhS65JSPZ7LmkG5FnSQHVpQc3YDpJxL5yjI3y1uZK8bggGXHhVcvIm4B 1z9Fa+Qh5q5iWKujEUwfb/67KknrqViPL3jyvhv/Ii+MvLtQzSXSQt6rIvoxlGjkG3oN lhTYV53hl4Dfe2scaKCFxiyPH4Hy7tGTCZKnvP7zoOQOuZD4olObkVlPvmHyoWmfCCQK g06g== X-Gm-Message-State: AOAM530AVGmqUryR88a+d9hxNgO20c87kHlB0h187Qa5AOICnsNzgl4g Nlv1eNuHr5u7o52lm7gESMJXCw== X-Google-Smtp-Source: ABdhPJyjwRcKr2PPmffNQWbMzJMYLYZXBvKvRRpHA5cq/kRRL2QZ9uFSy/asfG/EXNxrUovIwGF1eQ== X-Received: by 2002:a17:90a:d305:: with SMTP id p5mr2630975pju.33.1611023177935; Mon, 18 Jan 2021 18:26:17 -0800 (PST) Received: from hermes.local (76-14-222-244.or.wavecable.com. [76.14.222.244]) by smtp.gmail.com with ESMTPSA id y22sm936300pfb.132.2021.01.18.18.26.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 18:26:17 -0800 (PST) Date: Mon, 18 Jan 2021 18:26:14 -0800 From: Stephen Hemminger To: "Min Hu (Connor)" Cc: Bruce Richardson , , , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko , Ciara Power , Keith Wiles Message-ID: <20210118182614.63f1d5d2@hermes.local> In-Reply-To: <4b5e9630-b331-f498-2488-d9418719ff8c@huawei.com> References: <20210114121733.46801-1-bruce.richardson@intel.com> <4b5e9630-b331-f498-2488-d9418719ff8c@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] ethdev: avoid blocking telemetry callback for link status 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 Tue, 19 Jan 2021 09:06:48 +0800 "Min Hu (Connor)" wrote: > Hi, Bruce and all, > Do you know the difference between "rte_eth_link_get" and > "rte_eth_link_get_nowait"? I know they call funciton "link_update" > with differenct parameter "wait_to_complete"(set 1 means wait, set 0 > means not wait). But how to define the "wait" time, and why it shoud wait? > On the further, What are the application scenarios of the two > APIs? > The default behavior of rte_eth_link_get (in some drivers) is to wait for link to come up. Many drivers don't do this. It seems mostly the Intel ones that do.