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