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 B8C00A0A03 for ; 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 AF315140D94; Tue, 19 Jan 2021 03:26:20 +0100 (CET) Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mails.dpdk.org (Postfix) with ESMTP id CD727140D9D for ; Tue, 19 Jan 2021 03:26:18 +0100 (CET) Received: by mail-pl1-f179.google.com with SMTP id x18so9654160pln.6 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=uZjVnkRsTjwdleirHlKLY4vdofjNOYIW5Tz8F0chSsSHPcwBUZoyapzzE2jWaZT+pk +UZ4eiv34WNxtXX0RfC2gEzcaZEHE1NFHShjvQRKTp1WqHTbaof/UcJnn8LfdD4xgaWr iApHwohMaNz1WE7AsqzrkUf+V+HzDIDK5rpd4cn78CqBYw01DL+LYid0Yg2fIY9nBBcL PW2eflmom34GUkCcTLEBYGDI71X6OerI+EAw3rqIRtJeXaSVO+jFhqPlw9G3ImNv0Hga eAktwO5WyW3mfQxy95+p4mBlSh5/sKFjsaesOM8LDYPqKiEvKBVTl3tEJRW8gdO8t3aT hM0w== X-Gm-Message-State: AOAM530Svzyl8yiSMfASYtFu6KsntaXMnUIHqnwEK96i3n4VWkX0mXjV O258DPaGV+k8PweQ7vX36baaUg== 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-stable] [dpdk-dev] [PATCH] ethdev: avoid blocking telemetry callback for link status X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 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.