]> git.baikalelectronics.ru Git - kernel.git/commit
ipconfig: add informative timeout messages while waiting for carrier
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 2 Apr 2013 13:58:25 +0000 (09:58 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Apr 2013 18:35:33 +0000 (14:35 -0400)
commit0a5324633a50aebeb74bf4686fdcd31794e74016
treeb778bfa09c5f163f32a1b0bd5a3b225a5fc3bb3b
parent4370140e2e93a44deba5c6f2d101467232ded3b1
ipconfig: add informative timeout messages while waiting for carrier

Commit f6dcf7f77dde4fc978ad05f75b353ebd5ad73096 ("ipconfig wait
for carrier") added a "wait for carrier on at least one interface"
policy, with a worst case maximum wait of two minutes.

However, if you encounter this, you won't get any feedback from
the console as to the nature of what is going on.  You just see
the booting process hang for two minutes and then continue.

Here we add a message so the user knows what is going on, and
hence can take action to rectify the situation (e.g. fix network
cable or whatever.)  After the 1st 10s pause, output now begins
that looks like this:

Waiting up to 110 more seconds for network.
Waiting up to 100 more seconds for network.
Waiting up to 90 more seconds for network.
Waiting up to 80 more seconds for network.
...

Since most systems will have no problem getting link/carrier in the
1st 10s, the only people who will see these messages are people with
genuine issues that need to be resolved.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipconfig.c