Re: Realtek 8168D: no active link (126.96.36.199)
From: Benny Amorsen
Date: Thu May 28 2009 - 04:41:04 EST
tor, 28 05 2009 kl. 09:39 +0930, skrev Jonathan Woithe:
> I'm not surprised one way or the other since I have no idea what to expect
> when doing these tests on this card with the patches applied. Given that
> ethtool has a "duplex" option I naively thought that it controlled the
> card's duplex setting.
It does. The card is set to full duplex when you force full duplex.
> I interprete your comment to mean that duplex can't
> be controlled like this and it requires autonegotiation in order to active
> full duplex mode. If that's the case then so be it - I'm only reporting
> what I did and what effect it had on the card.
No, you're reporting which effect it had on the SWITCH. The switch
detected that autonegotiation failed, so it picked half duplex mode.
Card full duplex, switch half duplex, recipe for disaster.
> FYI, turning off autonegotiation was the only way I had of forcing the
> card's speed. If autoneg was left on the "speed 10" and "speed 100" options
> made no difference - the card would always configure for 1000 Mbps.
Correct. If you want to influence autonegotiation, you need to do
ethtool -s eth1 advertise 0x00F
This allows 10Mbps and 100Mbps with half or full duplex, but nothing
> Furthermore, in order to attain 1000 Mbps it was necessary to turn autoneg
> on - with it off, "speed 1000" would result in 100 Mbps only. However, I
> seem to recall reading somewhere that 1000 Mbps required autoneg so I'm not
> all that surprised with that observation.
That is correct.
I can recommend man ethtool.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/