ethdev: avoid blocking telemetry for link status
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 14 Jan 2021 12:17:33 +0000 (12:17 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 19 Jan 2021 02:30:32 +0000 (03:30 +0100)
commit26fe208ad81fc7439728d743bccd4b2a32701bfe
treec5b31b9943c60cc7aebd2e3c527c24468f23eed6
parent5f4f6a73eb54d188e792e4d1175354e77b47f0cf
ethdev: avoid blocking telemetry for link status

When querying the link status via telemetry interface, we don't want the
client to have to wait for multiple seconds for a reply. Therefore use
"rte_eth_link_get_nowait()" rather than "rte_eth_link_get()" in the
telemetry callback.

Fixes: c190daedb9b1 ("ethdev: add telemetry callbacks")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Ciara Power <ciara.power@intel.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
lib/librte_ethdev/rte_ethdev.c