net/ixgbe: fix link status
authorXiao Zhang <xiao.zhang@intel.com>
Tue, 29 Oct 2019 05:33:23 +0000 (13:33 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Nov 2019 22:15:04 +0000 (23:15 +0100)
commit1ca05831b9be946001ebabba2b3fdb0456684d9a
tree37547e1ae94b1785a32231148113de482085caf9
parenta342d2772c3c6adffabd4e087065df177b8e06e6
net/ixgbe: fix link status

The link status for 82599eb got from link status register was not
correct, check the enable/disable flag of tx laser when getting the link
status, set the link status down if tx laser disabled since the tx laser
flag could be set correctly when up/down the link status.

Fixes: dc66e5fd01b9 ("net/ixgbe: improve link state check on VF")
Cc: stable@dpdk.org
Signed-off-by: Xiao Zhang <xiao.zhang@intel.com>
Reviewed-by: Wei Zhao <wei.zhao1@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c