net/ixgbe: fix link up in FreeBSD
authorLunyuan Cui <lunyuanx.cui@intel.com>
Mon, 16 Dec 2019 02:24:18 +0000 (02:24 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:45:23 +0000 (19:45 +0100)
commitba7b12dd64e4e08f52ce9dd62f7c52f6fc455e10
tree888f594d3041741c2f9652ce30c46211604edac2
parentff8162cb9571528c006f265a32730a463fd0b886
net/ixgbe: fix link up in FreeBSD

In FreeBSD environment, nic_uio drivers do not support interrupts,
rte_intr_callback_register() will fail to register interrupts.
We cannot make link status to change from down to up by interrupt
callback. So we need to wait for the controller to acquire link
when ports start. Through multiple tests, 5s should be enough.

Fixes: b9bd0f09fa15 ("ethdev: fix link status query")
Cc: stable@dpdk.org
Signed-off-by: Lunyuan Cui <lunyuanx.cui@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c