[vortex] Inconsistency between mii-diag and kernel log.
Arno Griffioen
griffioena@psi.com
Thu, 19 Oct 2000 11:33:53 +0200 (CEST)
With my 3Com 3CCFE575BT Cyclone CardBus I see this in my kernel log:
eth0: Setting full-duplex based on MII #0 link partner capability of 41e1.
And that seems OK when I see that collisions is always '0' in the netstat
output.
mii-diag, however, seems to disagree:
Basic mode control register 0x1000: Auto-negotiation enabled.
Basic mode status register 0x782d ... 782d.
Link status: established.
Capable of 100baseTx-FD 100baseTx 10baseT-FD 10baseT.
Able to perform Auto-negotiation, negotiation complete.
Vendor ID is 00:c0:39:--:--:--, model 20 rev. 3.
Vendor/Part: TDK Semiconductor 78Q2120.
I'm advertising 0101: 100baseTx-FD
Advertising no additional info pages.
IEEE 802.3 CSMA/CD protocol.
Link partner capability is 41e1: 100baseTx-FD 100baseTx 10baseT-FD 10baseT.
Negotiation completed.
TDK format vendor-specific registers 16..18 are 0x0140 0x0000 0x0700
Link polarity is detected as normal.
Auto-negotiation complete, 100Mbps half duplex.
Rx link in pass state, PLL slipped since last read.
No new link status events.
Hmm.. 100Mbps half duplex???
Simple error in line 437 of libmii.c?
mii_reg18 & 0x0800 ? "full" : "half",
perhaps needs to be
mii_reg18 & 0x0800 ? "half" : "full",
At the moment I can't check the status shown by the switch itself
(have to log in as I'm color-blind and can't tell the difference from the
LED's), but hope to do so later.
Bye, Arno.
--
PSINetworks Europe Fax: +31-23-5699841 | One disk to rule them all,
Siriusdreef 34 Tel: +31-23-5699840 | One disk to bind them,
2132WT Hoofddorp+--------------------------------+ One disk to hold the files
The Netherlands | * Musical Interlude * | And in the darkness grind 'em
----------------+--------------------------------+------------------------------
We say Retribution, We say Vengeance is bliss, We say Revolution,
With a Cast-Iron fist! (Megadeth, 'The Disintegrators')
--------------------------------------------------------------------------------