summaryrefslogtreecommitdiffstats
path: root/src/usr/lotest.c
diff options
context:
space:
mode:
authorMichael Brown2013-11-01 18:38:45 +0100
committerMichael Brown2013-11-05 18:15:24 +0100
commit16d37102cae2cad9842462cca473d8a3962629fb (patch)
tree29d7a92917218755c432eb58b76190d1fef40576 /src/usr/lotest.c
parent[autoboot] Fix shell banner timeout (diff)
downloadipxe-16d37102cae2cad9842462cca473d8a3962629fb.tar.gz
ipxe-16d37102cae2cad9842462cca473d8a3962629fb.tar.xz
ipxe-16d37102cae2cad9842462cca473d8a3962629fb.zip
[ifmgmt] Rewrite iflinkwait() to use monojob_wait()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/usr/lotest.c')
-rw-r--r--src/usr/lotest.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/usr/lotest.c b/src/usr/lotest.c
index 905290a5..51d1a5d6 100644
--- a/src/usr/lotest.c
+++ b/src/usr/lotest.c
@@ -39,8 +39,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
*
*/
-#define LINK_WAIT_MS 15000
-
/**
* Process received packet
*
@@ -189,9 +187,9 @@ int loopback_test ( struct net_device *sender, struct net_device *receiver,
return rc;
/* Wait for link-up */
- if ( ( rc = iflinkwait ( sender, LINK_WAIT_MS ) ) != 0 )
+ if ( ( rc = iflinkwait ( sender, 0 ) ) != 0 )
return rc;
- if ( ( rc = iflinkwait ( receiver, LINK_WAIT_MS ) ) != 0 )
+ if ( ( rc = iflinkwait ( receiver, 0 ) ) != 0 )
return rc;
/* Allocate data buffer */