[ipxe-devel] [PATCH] Increase link wait timeout
Leendert van Doorn
leendert at paramecium.org
Mon Jun 13 08:36:18 UTC 2016
On my system the time for the broadcom NIC (TG3) to establish a link is
in 80% of the cases > 15secs which causes the link setup to fail. In fact,
the TG3 driver starts receiving packets well before the PHY signals its up
and running. Increasing the timeout to 60 secs resolves this failure.
Signed-of-by: Leendert van Doorn <leendert at paramecium.org>
diff --git a/src/usr/ifmgmt.c b/src/usr/ifmgmt.c
index f367149..b6d6a53 100644
--- a/src/usr/ifmgmt.c
+++ b/src/usr/ifmgmt.c
@@ -43,7 +43,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
*/
/** Default time to wait for link-up */
-#define LINK_WAIT_TIMEOUT ( 15 * TICKS_PER_SEC )
+#define LINK_WAIT_TIMEOUT ( 60 * TICKS_PER_SEC )
/** Default unsuccessful configuration status code */
#define EADDRNOTAVAIL_CONFIG __einfo_error ( EINFO_EADDRNOTAVAIL_CONFIG )
More information about the ipxe-devel
mailing list