HomeFreeBSD

ixgbe: wait longer for link after fiber MAC setup

Description

ixgbe: wait longer for link after fiber MAC setup

After setting up the link on a fiber port, the maximum wait time for
the link to come up is 500 ms in ixgbe_setup_mac_link_multispeed_fiber().
On an x550 SFP+ port, this is often not sufficiently long for the link
to come up. This can result in never being able to retrieve accurate
link status for the port using rte_eth_link_get_nowait().

Increase the maximum wait time in ixgbe_setup_mac_link_multispeed_fiber()
to 1 s.

Signed-off-by: Matthew Smith <mgsmith@netgate.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>

Approved by: imp
Obtained from: DPDK (64f1c8539c8ce99214b9eb1fb728a2c6745f3300)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D31621

(cherry picked from commit aaa3af802f90d93fdffb99100fe56f0bc3dda119)

Details

Provenance
Matthew Smith <mgsmith@netgate.com>Authored on Jul 16 2018, 4:36 PM
Kevin Bowling <kbowling@FreeBSD.org>Committed on Sep 14 2021, 12:36 AM
Differential Revision
D31621: ixgbe: Update shared code
Parents
rGba1995e65ce1: ixgbe: fix host interface shadow RAM read
Branches
Unknown
Tags
Unknown