diff options
author | Michael Brown <mcb30@ipxe.org> | 2013-11-01 17:38:45 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2013-11-05 17:15:24 +0000 |
commit | 16d37102cae2cad9842462cca473d8a3962629fb (patch) | |
tree | 29d7a92917218755c432eb58b76190d1fef40576 /src/usr/lotest.c | |
parent | 170d493bf322a715c929a194bfb680b32d8fdb23 (diff) | |
download | ipxe-16d37102cae2cad9842462cca473d8a3962629fb.tar.gz |
[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.c | 6 |
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 */ |