ipconfig wait for carrier
authorMicha Nelissen <micha@neli.hopto.org>
Thu, 19 May 2011 10:14:06 +0000 (10:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 May 2011 21:13:04 +0000 (17:13 -0400)
commit3fb72f1e6e6165c5f495e8dc11c5bbd14c73385c
treee47295482bb91c6f837de040cb4abe5b79be7019
parentc182f90bc1f22ce5039b8722e45621d5f96862c2
ipconfig wait for carrier

v3 -> v4: fix return boolean false instead of 0 for ic_is_init_dev

Currently the ip auto configuration has a hardcoded delay of 1 second.
When (ethernet) link takes longer to come up (e.g. more than 3 seconds),
nfs root may not be found.

Remove the hardcoded delay, and wait for carrier on at least one network
device.

Signed-off-by: Micha Nelissen <micha@neli.hopto.org>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipconfig.c