From: Seewer Philippe <philippe.seewer-omB+W0Dpw2o@public.gmane.org>
To: David Dillow <dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 2/5] Give the kernel some time to up interfaces
Date: Fri, 26 Jun 2009 09:07:38 +0200 [thread overview]
Message-ID: <4A4473BA.1020301@bfh.ch> (raw)
In-Reply-To: <1245985355.30948.14.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
David Dillow wrote:
> On Wed, 2009-06-24 at 20:08 +0200, Philippe Seewer wrote:
>> It does not really matter if the kernel needs some time or if
>> the ethernet handshake takes a while. It's a good idea to wait
>> a second after upping an interface to let things settle.
>
> Hmm, shouldn't DHCP retries take care of this issue, and the server ARP
> ping we've been talking about take care of it for static configs?
>
> I would be a bit concerned that the backoff of dhclient may slow us down
> more than a second, but I've not investigated if that is true.
>
> I'm not really keen on adding a mandatory delay unless there is no other
> option.
>
In the DHCP case, yes we could skip the sleep as dhclient will just
retry if the interface isn't ready. But for all other cases, we really
should give the hardware some time to initialize.
During the years, I've had to use this for different cases, be it
slow firmware loading, weird drivers or just hardware that takes
longer. I've even had interfaces failing configuration if they didn't
get some time to initialize. Another example: My e1000e card actually
takes just a bit more than 1 second to got to LOWER_UP when I do
modprobe e1000e && ip link set eth0 up
So this patch is just plain paranoia to make sure there's enough time
between upping the interface and trying to configure it. Yes, we could
try to wait for LOWER_UP or something similar, but sleep 1 is simpler
and I haven't yet seen a case where that isn't enough and the slow down
is negligible.
As for other references: Stock isc 4.1 dhclient-scripts do it as well
for example. I admit, others doing it doesn't make it right. But it's
just a pointer.
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-06-26 7:07 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-24 18:08 [PATCH 0/5] Netroot updates and multinic test-suite Philippe Seewer
[not found] ` <1245866912-3643-1-git-send-email-philippe.seewer-omB+W0Dpw2o@public.gmane.org>
2009-06-24 18:08 ` [PATCH 1/5] Bugfix: Fix BOOTIF argument translation Philippe Seewer
2009-06-24 18:08 ` [PATCH 2/5] Give the kernel some time to up interfaces Philippe Seewer
[not found] ` <1245866912-3643-3-git-send-email-philippe.seewer-omB+W0Dpw2o@public.gmane.org>
2009-06-26 3:02 ` David Dillow
[not found] ` <1245985355.30948.14.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2009-06-26 7:07 ` Seewer Philippe [this message]
2009-06-24 18:08 ` [PATCH 3/5] Be a bit more optimistic when setting mtus Philippe Seewer
2009-06-24 18:08 ` [PATCH 4/5] Add DAD do dhclient-script Philippe Seewer
[not found] ` <1245866912-3643-5-git-send-email-philippe.seewer-omB+W0Dpw2o@public.gmane.org>
2009-06-24 18:39 ` David Dillow
[not found] ` <1245868789.31775.16.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2009-06-24 19:56 ` Seewer Philippe
[not found] ` <4A4284D3.5050007-omB+W0Dpw2o@public.gmane.org>
2009-06-26 2:45 ` David Dillow
2009-06-24 18:08 ` [PATCH 5/5] Add multinic test suite Philippe Seewer
[not found] ` <1245866912-3643-6-git-send-email-philippe.seewer-omB+W0Dpw2o@public.gmane.org>
2009-06-26 2:56 ` David Dillow
[not found] ` <1245985005.30948.11.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2009-06-26 6:43 ` Seewer Philippe
2009-06-26 3:20 ` [PATCH 0/5] Netroot updates and multinic test-suite David Dillow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A4473BA.1020301@bfh.ch \
--to=philippe.seewer-omb+w0dpw2o@public.gmane.org \
--cc=dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.