net/i40e: fix link status update
authorBeilei Xing <beilei.xing@intel.com>
Thu, 10 May 2018 02:26:29 +0000 (10:26 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:31:52 +0000 (22:31 +0100)
commitb5f6272c242f12fa3403b0d7e9da18fb83da17d4
treef4b19e106328d8c6d17bdd44a7ec57e2c5ff2824
parent2f203d44bab2637123f47d851fef2494ca016c6a
net/i40e: fix link status update

Link status is not updated correctly, link speed is 0
when link is up and link speed is not 0 when link is
down. This patch fixes the issue.

Fixes: eef2daf2e199 ("net/i40e: fix link update no wait")
Cc: stable@dpdk.org
Signed-off-by: Keith Wiles <keith.wiles@intel.com>
Signed-off-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/i40e_ethdev.c