Package: net-tools
Version: 1.60-22
Followup-For: Bug #511395
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Just some additional data points for this bug.
This interface is connected to a 100baseTx switch port. mii-tool shows
the correct negotiation result, but seems to mixup the advertised modes
and the link partner capabilities:
klodrik:~# mii-tool -v eth0
eth0: negotiated 100baseTx-FD, link ok
product info: vendor 00:13:74, model 1 rev 5
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
ethtool gets the advertised modes right, but doesn't show the link partner's
capabilities:
klodrik:~# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Current message level: 0x003f (63)
Link detected: yes
The driver is atl1 if that matters (dont' think so - see below):
klodrik:~# lspci -vvnns 02:00.0
02:00.0 Ethernet controller [0200]: Attansic Technology Corp. L1 Gigabit
Ethernet Adapter [1969:1048] (rev b0)
Subsystem: ASUSTeK Computer Inc. Device [1043:8226]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast TAbort- TAbort-
MAbort- SERR- PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 1276
Region 0: Memory at febc (64-bit, non-prefetchable) [size=256K]
Expansion ROM at feba [disabled] [size=128K]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [48] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0
Enable+
Address: fee0100c Data: 4191
Capabilities: [58] Express (v1) Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s 4us, L1
unlimited
ExtTag- AttnBtn+ AttnInd+ PwrInd+ RBE- FLReset-
DevCtl: Report errors: Correctable- Non-Fatal- Fatal-
Unsupported-
RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
MaxPayload 128 bytes, MaxReadReq 512 bytes
DevSta: CorrErr- UncorrErr+ FatalErr- UnsuppReq+ AuxPwr+
TransPend-
LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s, Latency L0
unlimited, L1 unlimited
ClockPM- Suprise- LLActRep- BwNot-
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk+
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+
DLActive- BWMgmt- ABWMgmt-
Capabilities: [6c] Vital Product Data ?
Capabilities: [100] Advanced Error Reporting ?
Kernel driver in use: atl1
Kernel modules: atl1
The switch shows these properties on the connected port:
c2950a#sh interfaces Fa0/20 capabilities
FastEthernet0/20
Model: WS-C2950G-24-EI
Type: 10/100BaseTX
Speed: 10,100,auto
Duplex:half,full,auto
UDLD: yes
Trunk encap. type: 802.1Q
Trunk mode:on,off,desirable,nonegotiate
Channel: yes
Broadcast suppression: percentage(0-100)
Flowcontrol: rx-(none),tx-(none)
Fast Start:yes
CoS rewrite: yes
ToS rewrite: yes
Inline power: no
SPAN: source/destination
PortSecure:Yes
Dot1x: Yes
c2950a#sh interfaces Fa0/20 transceiver properties
Name : Fa0/20
Administrative Speed: auto
Administrative Duplex: auto
Administrative Auto-MDIX: N/A
Operational Speed: 100
Operational Duplex: full
Operational Auto-MDIX: N/A
Example from another box having the same net-tools version, but another driver
and switchport (1000BaseT capable):
canardo:/home/bjorn# mii-tool -v eth1
eth1: negotiated flow-control, link ok
product info: Yukon 88E1011 rev 5
basic mode: