[dpdk-stable] [PATCH v4] net/ixgbe: fix link status

Lu, Wenzhuo wenzhuo.lu at intel.com
Tue Nov 26 03:05:37 CET 2019


Hi,


> -----Original Message-----
> From: Cui, LunyuanX
> Sent: Monday, November 18, 2019 11:38 PM
> To: dev at dpdk.org
> Cc: Lu, Wenzhuo <wenzhuo.lu at intel.com>; Cui, LunyuanX
> <lunyuanx.cui at intel.com>; stable at dpdk.org
> Subject: [PATCH v4] 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, set the link status down if tx laser
> disabled. Then, we can get correct status.
> But after port reset, tx laser register will be reset enable.
> Link status will always be up. So set tx laser disable when port resets.
> 
> When hw->mac.autotry_restart is true, whether tx laser is disable or enable,
> it will be set enable in ixgbe_flap_tx_laser_multispeed_fiber().
> hw->mac.autotry_restart can be set true in both port init and port start.
> Because we don't need this treatment before port starts, set
> hw->mac.autotry_restart false when port init.
> 
> Fixes: 0408f47ba4d6 ("net/ixgbe: fix busy polling while fiber link update")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Lunyuan Cui <lunyuanx.cui at intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu at intel.com>


More information about the stable mailing list