[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1245887312.12000.543.camel@nseg_linux_HP1.broadcom.com>
Date: Wed, 24 Jun 2009 16:48:32 -0700
From: "Michael Chan" <mchan@...adcom.com>
To: "David Miller" <davem@...emloft.net>
cc: "rick.jones2@...com" <rick.jones2@...com>,
"nooiwa@...aclelinux.com" <nooiwa@...aclelinux.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH] bnx2: Fix the behavior of ethtool when ONBOOT=no
On Wed, 2009-06-24 at 16:42 -0700, David Miller wrote:
> From: "Michael Chan" <mchan@...adcom.com>
> Date: Wed, 24 Jun 2009 09:59:20 -0700
>
> > On Wed, 2009-06-24 at 09:43 -0700, Rick Jones wrote:
> >> Why? Sure, there is no IP on the link, but does that mean the link is
> >> otherwise unusable? Is ethtool only about IP status?
> >>
> >
> > Once the device is closed, we no longer keep track of the link state and
> > no longer have register access to determine the link state. So we
> > assume it is down. In reality, it may still be up if WoL is enabled or
> > management firmware is running, but the driver can no longer keep track
> > of it. If we have to assume one or the other, I think it is more
> > correct to assume it is down.
>
> This is a big problem. I misread this situation when I decided to
> apply the patch yesterday, sorry. We're going to have to revert it.
>
> Applications like NetworkManager decide which devices to bring up and
> attempt DHCP etc. on based upon the link status.
>
> So if we report link down, the interface won't even be tried even if a
> cable is plugged in.
>
> Actually I wonder, does NM bring the interface "up" before checking
> link state? Does anyone know?
>
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.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists