On Wed, Oct 15, 2008 at 8:33 AM, Asim <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I wish to find out exactly when my network card come up. I'm using the
> e1000 driver/intel card and find that the driver is instantiated after
> 2-3 seconds after it is located. The dmesg then  shows the following
> message:
>
>  e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex
>
> Is there anyway to figure out when this condition is true? I used
> netif_carrier_ok() and netif_running(). Both return true but the link
> is not up and the packet i send does not get sent. Any ideas on any
> function I can loop to check if the link is actually up?

I just forward the answer from my friend Breno leitao. He thinks it's
a bit in netdev->state, but he also remind me it's kinda tightly
depend on hardware spec, so check the manual.

One of the code snippet he showed to me:
test_bit(__IXGBE_DOWN, &adapter->state)

I hope that means something to you.

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to