1 |
Leif Sawyer wrote: |
2 |
> I've been trying to figure out what the inconsistancy is in the |
3 |
> sparc ethernet model with relation to link up/down for hotplug events. |
4 |
> |
5 |
> My qfe interface defaults at boot to "autoneg on", and 100/full |
6 |
> as verified with ethtool. |
7 |
> |
8 |
> if I unplug the cable, I should see a NETLINK event that the interface |
9 |
> is down, so that hotplug/netplug can take action. |
10 |
> |
11 |
> This does not seem to happen. |
12 |
> What does seem to happen is that the interface resets itself into |
13 |
> 10/half, and the link-detect stays active. |
14 |
> |
15 |
> if I 'touch' the interface with ethtool in set mode, say, |
16 |
> "ethtool -s eth2 autoneg on" -- which is the current setting anyway -- |
17 |
> the interface finally shows link down, and I see kernel messages |
18 |
> from the driver stating this. |
19 |
> |
20 |
> This would seem to be a bug in the re-negotiation code. Link-detect |
21 |
> should be 'no' until we've successfully renegotiated a carrier, |
22 |
> especially if we've suddenly changed speed/duplex. |
23 |
|
24 |
This bug may not be specific to this driver. I saw something similar recently on |
25 |
some Dual Opteron servers here at work with Broadcom gigabit ethernet with the |
26 |
2006.1 LiveCD and kernel 2.6.17-gentoo-r5. When the machine booted up, I only |
27 |
had a cable plugged into eth1. While eth1 showed 100/full, eth0 showed 10/half |
28 |
until I did 'ifconfig eth0 up/down'. |
29 |
|
30 |
I currently have 2.6.16-hardened-r11 running on those boxes, and one box still |
31 |
has nothing plugged into eth0, but mii-tool shows that it's down. It could be a |
32 |
difference in the bootup procedure or a bug that was introduced in 2.6.17. What |
33 |
kernel are you seeing this with? |
34 |
|
35 |
-- |
36 |
Andrew Gaffney http://dev.gentoo.org/~agaffney/ |
37 |
Gentoo Linux Developer Installer Project |
38 |
Today's lesson in political correctness: "Go asphyxiate on a phallus" |
39 |
-- |
40 |
gentoo-sparc@g.o mailing list |