]> git.droids-corp.org - dpdk.git/commit
net/txgbe: fix link up and down
authorJiawen Wu <jiawenwu@trustnetic.com>
Wed, 9 Feb 2022 10:42:12 +0000 (18:42 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 11 Feb 2022 12:49:13 +0000 (13:49 +0100)
commit2e1ecb460db92bc9dcd2350ed48dfe0b504f380f
tree4639e09439107ce03369538b0a7c0fc48ac2c851
parentf45834fd5c6a5653fe6a37bc2d9d167cd2d81704
net/txgbe: fix link up and down

Add hw->dev_start status in the flow of setting link up/down, to avoid
obtaining link status inconsistent with the settings.

Fixes: 12a653eb53e1 ("net/txgbe: fix link status when device stopped")
Cc: stable@dpdk.org
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
drivers/net/txgbe/txgbe_ethdev.c