NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/20700



The following reply was made to PR kern/20700; it has been noted by GNATS.

From: Manuel Bouyer <bouyer%antioche.eu.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: kern-bug-people%NetBSD.org@localhost, gnats-admin%NetBSD.org@localhost, 
netbsd-bugs%NetBSD.org@localhost,
        darcy%druid.net@localhost
Subject: Re: kern/20700
Date: Wed, 30 Nov 2011 12:46:28 +0100

 On Wed, Nov 30, 2011 at 02:15:05AM +0000, Brian Buhrow wrote:
 >      Hello.  I realize this bug is incredibly old, but I've recently
 >  written a patch which addresses this very issue.  The patch essentially
 >  turns on Nway negotiation on a NIC when its mode is set either to auto or
 >  to 1000baset with any mediaopt options.  This has the nice side effect of
 >  also allowing a NIC to regain link if a connection is lost after theinitial
 >  ifconfig is run at boot time or reconfig time.
 >      If you could try the following patch and see if it makes things work
 >  better for you, I'll commit and request a pullup for 5.x.  I've tested this
 >  patch against 4.x and 5.x, and am working on testing against current, but I
 >  think it will work against 3.x, 2.x, and pretty much anything since we got
 >  the mii code.
 >  
 >      Please let me know what you find.
 
 With this patch it can give some strange things:
 # ifconfig wm0
 wm0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 
150
         
capabilities=2bf80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,U>
         enabled=0
         address: 00:13:72:54:ee:13
         media: Ethernet 1000baseT (1000baseT full-duplex)
 
 I asked for 1000baseT, it negociated (and is using) 1000baseT full-duplex.
 But the link is up and working.
 
 But there's something worse: I configured the cisco to negociate
 only 100baseTX, and I get:
         media: Ethernet 1000baseT (100baseTX full-duplex)
         status: active
 
 I think there's some filtering missing on our side to only
 advertise/accept the configured media (basically 'media 1000baseT' is now
 an alias for 'media auto').
 
 -- 
 Manuel Bouyer <bouyer%antioche.eu.org@localhost>
      NetBSD: 26 ans d'experience feront toujours la difference
 --
 


Home | Main Index | Thread Index | Old Index