IFF_RUNNING without carrier after reboot
Subsystems (2)
Hi guys,
I have a really strange issue with the 2.6.28 kernel. So when I boot that kernel and then call "ifconfig eth0 up && ifconfig" it shows eth0 with the flag RUNNING enabled. Even if no cable is plugged into that device.
If I then actually do plug on in and wait a few seconds (until the lights blink) and then unplug everything is perfectly fine and it behaves form there on normal
It is really only after boot and the 2.6.27 kernel behaves as expected. Any ideas what's wrong here. My machine is an X61 laptop with e1000e based Ethernet card.
Regards
Marcel
David Miller
maintainerFrom: Marcel Holtmann <[email protected]>
Date: Sun, 14 Dec 2008 04:28:33 +0100
Quoted 4 lines
I have a really strange issue with the 2.6.28 kernel. So when I boot that kernel and then call "ifconfig eth0 up && ifconfig" it shows eth0 with the flag RUNNING enabled. Even if no cable is plugged into that device.
The RUNNING state has no connection to link presence.
It just means that the device has been brought up by a user configuration command like the ifconfig you ran.
It really means nothing else.
Quoted 7 lines · David Miller
The RUNNING state has no connection to link presence.
It just means that the device has been brought up by a user configuration command like the ifconfig you ran.
It really means nothing else.
Well RUNNING did use to indicate carrier state. In fact I didn't even know that it had changed until this email :)
This is the changeset which did it:
commit b00055aacdb172c05067612278ba27265fcd05ce
Author: Stefan Rompf <[email protected]> Date: Mon Mar 20 17:09:11 2006 -0800
[NET] core: add RFC2863 operstate
Cheers,
Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txtDavid Miller
maintainerFrom: Herbert Xu <[email protected]>
Date: Mon, 15 Dec 2008 18:28:00 +1100
Quoted 7 lines
Quoted 6 lines · David Miller
The RUNNING state has no connection to link presence.
It just means that the device has been brought up by a user configuration command like the ifconfig you ran.
Quoted 6 lines
Quoted 1 line
It really means nothing else.
Well RUNNING did use to indicate carrier state. In fact I didn't even know that it had changed until this email :)
This is the changeset which did it:
Yes, it was a bug and we fixed it more than 2 years ago. Thanks for confirming :-)
Quoted 12 lines · David Miller
From: Herbert Xu <[email protected]>
Date: Mon, 15 Dec 2008 18:28:00 +1100Quoted 9 lines
Quoted 7 lines · David Miller
The RUNNING state has no connection to link presence.
It just means that the device has been brought up by a user configuration command like the ifconfig you ran.
It really means nothing else.
Quoted 7 lines
Quoted 4 lines
Well RUNNING did use to indicate carrier state. In fact I didn't even know that it had changed until this email :)
This is the changeset which did it:
Yes, it was a bug and we fixed it more than 2 years ago. Thanks for confirming :-)
So the RUNNING flag no longer indicates link state? Wow that's going to break some userspace quite badly.
Isn't the UP flag what indicates opstate?
What is the correct way for userspace to detect link state on an interface?
Signature · 1 line
Len Sorensen