mirror of
https://github.com/ipxe/ipxe
synced 2026-01-06 03:42:11 +03:00
[ifmgmt] Rewrite iflinkwait() to use monojob_wait()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user