Re: detecting ethernet mode for Giga Nic
Hi,
Fabrice Lorrain wrote:
> I just discover that mii-tool and mii-diag (sarge/sid version) report
> Giga link as 100bTx both on 2.4.26 and 2.6.7 kernel :
>
> Broadcom BCM5704 chipset NIC :
> # mii-tool eth0
> eth0: negotiated 100baseTx-FD, link ok
> Intel e1000 (82546EB) :
> # mii-diag eth0
> Basic registers of MII PHY #0: 1140 796d 0141 0c23 0de1 c181 000d
> 2801.
> The autonegotiated capability is 0180.
> The autonegotiated media type is 100baseTx-FD.
> Basic mode control register 0x1140: Auto-negotiation enabled.
> You have link beat, and everything is working OK.
> Your link partner advertised c181: 100baseTx-FD 100baseTx.
> End of basic transceiver information.
I don't know of broadcom but here what i can tell about e1000 :
e1000 does not support the mii. Do not expect mii-{tool,diag} to work.
> I know for sure that those link are in full duplex Giga mode (switch
> configuration and benchmark).
>
> Anybody knows a way to get the real state of these interfaces (other
> tool ? /proc/* ? etc...)
ethtool (packaged) is able to view the state of e1000 interfaces.
The driver allows you to change them at load-time.
http://www.intel.com/support/network/adapter/1000/linux/e1000.htm
Furthermore, intel has some tools available that can change negotiation
parameters on the fly (and other things like VLAN or teaming) :
http://www.intel.com/support/network/adapter/1000/linux/procfg.htm
Hope this helps...
--
http://www.IELO.net/
Reply to: