DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Using rte_eth_link_get_nowait
@ 2016-09-26 10:02 Keren Hochman
  2016-09-26 10:08 ` Bruce Richardson
  0 siblings, 1 reply; 2+ messages in thread
From: Keren Hochman @ 2016-09-26 10:02 UTC (permalink / raw)
  To: dev

Hi,
My application needs to know if port is up, but without wasting 9 seconds
(using rte_eth_link_get).
I tried to register to callback: lsi_event_callback as suggested in the
DPDK examples but I did not receive the event RTE_ETH_EVENT_INTR_LSC.
Thanks, Keren.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] Using rte_eth_link_get_nowait
  2016-09-26 10:02 [dpdk-dev] Using rte_eth_link_get_nowait Keren Hochman
@ 2016-09-26 10:08 ` Bruce Richardson
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Richardson @ 2016-09-26 10:08 UTC (permalink / raw)
  To: Keren Hochman; +Cc: dev

On Mon, Sep 26, 2016 at 01:02:00PM +0300, Keren Hochman wrote:
> Hi,
> My application needs to know if port is up, but without wasting 9 seconds
> (using rte_eth_link_get).
> I tried to register to callback: lsi_event_callback as suggested in the
> DPDK examples but I did not receive the event RTE_ETH_EVENT_INTR_LSC.
> Thanks, Keren.

There is also the ethdev function rte_eth_link_get_nowait(), which should do
what you want, I think.

Regards,
/Bruce

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-26 10:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-26 10:02 [dpdk-dev] Using rte_eth_link_get_nowait Keren Hochman
2016-09-26 10:08 ` Bruce Richardson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).