blob: 93d1601c677b506eca2e7953229412ad20631caf [file] [log] [blame]
Matthew Smith768c2902018-09-11 13:50:48 -05001From ba9b381c532fe57c726752b7db0ab45ab7726c90 Mon Sep 17 00:00:00 2001
2From: Matthew Smith <mgsmith@netgate.com>
3Date: Fri, 13 Jul 2018 16:35:57 -0500
4Subject: [PATCH] ixgbe: wait longer for link after fiber MAC setup
5
6After setting up the link on a fiber port, the maximum wait time for
7the link to come up is 500 ms in ixgbe_setup_mac_link_multispeed_fiber().
8On an x550 SFP+ port, this is often not sufficiently long for the link
9to come up. This can result in never being able to retrieve accurate
10link status for the port using rte_eth_link_get_nowait().
11
12Increase the maximum wait time in ixgbe_setup_mac_link_multispeed_fiber()
13to 1 s.
14
15Bugzilla ID: 69
16Fixes: f3430431abaf ("ixgbe/base: add SFP+ dual-speed support")
17Cc: stable@dpdk.org
18
19Signed-off-by: Matthew Smith <mgsmith@netgate.com>
20---
21 drivers/net/ixgbe/base/ixgbe_common.c | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
23
24diff --git a/drivers/net/ixgbe/base/ixgbe_common.c b/drivers/net/ixgbe/base/ixgbe_common.c
25index e7e9256e5..2fb0a072c 100644
26--- a/drivers/net/ixgbe/base/ixgbe_common.c
27+++ b/drivers/net/ixgbe/base/ixgbe_common.c
28@@ -5296,7 +5296,7 @@ s32 ixgbe_setup_mac_link_multispeed_fiber(struct ixgbe_hw *hw,
29 * Section 73.10.2, we may have to wait up to 500ms if KR is
30 * attempted. 82599 uses the same timing for 10g SFI.
31 */
32- for (i = 0; i < 5; i++) {
33+ for (i = 0; i < 10; i++) {
34 /* Wait for the link partner to also set speed */
35 msec_delay(100);
36
37--
382.15.2 (Apple Git-101.1)
39