net/txgbe: fix link status when device stopped
authorJiawen Wu <jiawenwu@trustnetic.com>
Thu, 12 Aug 2021 02:00:18 +0000 (10:00 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 18 Aug 2021 14:04:09 +0000 (16:04 +0200)
commit12a653eb53e1963f9d3a04cabeead206e2ed1f66
tree0a54936cb4b7c4a1dbef96e7873c12167591f190
parent8d7a59f171a2bb765ad45cee3f67df45e7e71f7e
net/txgbe: fix link status when device stopped

When device is stopped, the port status is not changed and only the Tx
laser is turned off by hardware design.

Fixes: 0c061eadec59 ("net/txgbe: add link status change")
Cc: stable@dpdk.org
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
drivers/net/txgbe/base/txgbe_type.h
drivers/net/txgbe/txgbe_ethdev.c
drivers/net/txgbe/txgbe_ethdev_vf.c