i40e: fix link status timeout
authorCunming Liang <cunming.liang@intel.com>
Wed, 1 Apr 2015 02:33:34 +0000 (10:33 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 1 Apr 2015 19:45:44 +0000 (21:45 +0200)
commit263333bbb7a9b3356ac2d996b2a7bfd6941d0022
tree29e39066c30708dc8546fc4dfb20d4161d2c1c55
parentb9a8b2f80959ac6c415b202d9cb39fa529b167f5
i40e: fix link status timeout

API *rte_eth_link_get* expect to call a wait to complete link_update.
That's the difference between *rte_eth_link_get_nowait*.
The patch fixes the issue that i40e link_update ignores the wait_to_complete flag.
The issue impacts those applications calling rte_eth_link_get to get wrong intermediate link status.

Signed-off-by: Cunming Liang <cunming.liang@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
lib/librte_pmd_i40e/i40e_ethdev.c