From: Naohiro Ooiwa <nooiwa@miraclelinux.com>
To: David Miller <davem@davemloft.net>
Cc: mchan@broadcom.com, rick.jones2@hp.com, netdev@vger.kernel.org
Subject: Re: [PATCH] bnx2: Fix the behavior of ethtool when ONBOOT=no
Date: Fri, 26 Jun 2009 13:30:51 +0900 [thread overview]
Message-ID: <4A444EFB.3010702@miraclelinux.com> (raw)
In-Reply-To: <20090624.172544.67048473.davem@davemloft.net>
Hi David
Thank you for taking a look at the NM sources.
FYI, I confirmed the behavior of e1000e driver.
The condition is ONBOOT=no, and with or without LAN cable.
bnx2 is included this patch.
| LAN cable | ethtool
| | Link detected
-------+-----------+----------------
e1000e | plugged | yes
e1000e | unplugged | no
bnx2 | plugged | yes
bnx2 | unplugged | no (previously "yes")
The behavior of bnx2 became congruent with e1000e.
The looks is natural for me.
Best Regards,
Naohiro Ooiwa
David Miller wrote:
> From: David Miller <davem@davemloft.net>
> Date: Wed, 24 Jun 2009 17:12:46 -0700 (PDT)
>
>> From: "Michael Chan" <mchan@broadcom.com>
>> Date: Wed, 24 Jun 2009 16:48:32 -0700
>>
>>> I don't know about NetworkManager, but the old ifup script will bring up
>>> the device, wait up to 5 seconds for link up, and then do DHCP.
>> I'll swallow a handful of antacid tablets and take a look at
>> the NM sources :-/
>
> Ok, NM first checks if the device supports either ethtool or
> MII based link status.
>
> It checks for these capabilities by openning the device, trying
> the ethtool/ioctl op, then closing the device.
>
> If link status reporting is found to be supported, it records the
> initial link state and listens for netlink events. (these are
> generated by netif_carrier_{on,off}() calls in the kernel)
>
> When a link-up status netlink event is received, it brings wired
> devices reporting such events up.
>
> And most importantly, it seems to bring the device UP during all
> of this stuff.
>
> So I guess we're OK.
>
next prev parent reply other threads:[~2009-06-26 4:30 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-24 2:57 [PATCH] bnx2: Fix the behavior of ethtool when ONBOOT=no Naohiro Ooiwa
2009-06-24 3:48 ` Michael Chan
2009-06-24 4:43 ` Naohiro Ooiwa
2009-06-24 5:04 ` Michael Chan
2009-06-24 5:45 ` Naohiro Ooiwa
2009-06-24 7:08 ` David Miller
2009-06-24 7:16 ` David Miller
2009-06-24 8:39 ` Naohiro Ooiwa
2009-06-24 16:43 ` Rick Jones
2009-06-24 16:59 ` Michael Chan
2009-06-24 23:42 ` David Miller
2009-06-24 23:48 ` Michael Chan
2009-06-25 0:12 ` David Miller
2009-06-25 0:25 ` David Miller
2009-06-26 4:30 ` Naohiro Ooiwa [this message]
2009-06-29 0:49 ` Naohiro Ooiwa
2009-06-30 14:50 ` Eilon Greenstein
2009-06-30 19:46 ` David Miller
2009-07-02 4:46 ` Naohiro Ooiwa
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=4A444EFB.3010702@miraclelinux.com \
--to=nooiwa@miraclelinux.com \
--cc=davem@davemloft.net \
--cc=mchan@broadcom.com \
--cc=netdev@vger.kernel.org \
--cc=rick.jones2@hp.com \
/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.