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