[dpdk-stable] [dpdk-dev] [PATCH] ethdev: avoid blocking telemetry callback for link status

Stephen Hemminger stephen at networkplumber.org
Tue Jan 19 03:26:14 CET 2021


On Tue, 19 Jan 2021 09:06:48 +0800
"Min Hu (Connor)" <humin29 at huawei.com> 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.


More information about the stable mailing list