From owner-freebsd-stable@FreeBSD.ORG Fri Oct 21 08:11:35 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C63A1065674 for ; Fri, 21 Oct 2011 08:11:35 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 628BD8FC15 for ; Fri, 21 Oct 2011 08:11:35 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id p9L8BYb5048951 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 21 Oct 2011 01:11:34 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id p9L8BYLh048950 for freebsd-stable@freebsd.org; Fri, 21 Oct 2011 01:11:34 -0700 (PDT) Received: from fbsd81 ([192.168.200.81]) by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA02892; Fri, 21 Oct 11 01:01:51 PDT Date: Fri, 21 Oct 2011 08:00:38 -0700 From: perryh@pluto.rain.com To: freebsd-stable@freebsd.org Message-Id: <4ea18916.IBAr0lF5RCzEYn6G%perryh@pluto.rain.com> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: 8.1 xl + dual-speed Netgear hub = yoyo X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2011 08:11:35 -0000 I have an 8.1-RELEASE system with an xl on the mainboard: xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xdc80-0xdcff mem 0xf8fffc00-0xf8fffc7f irq 16 at device 4.0 on pci2 miibus0: on xl0 xlphy0: <3c905C 10/100 internal PHY> PHY 24 on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: Ethernet address: 00:b0:d0:22:5a:14 xl0: [ITHREAD] It has been working properly while connected to an old 10-BaseT hub, but when I moved it to a (not as old) Netgear 10/100 dual-speed hub the link started to yo-yo: Oct 21 07:16:00 fbsd81 kernel: xl0: link state changed to DOWN Oct 21 07:16:02 fbsd81 kernel: xl0: link state changed to UP Oct 21 07:16:12 fbsd81 kernel: xl0: link state changed to DOWN Oct 21 07:16:14 fbsd81 kernel: xl0: link state changed to UP Oct 21 07:16:18 fbsd81 kernel: xl0: link state changed to DOWN Oct 21 07:16:20 fbsd81 kernel: xl0: link state changed to UP Oct 21 07:16:26 fbsd81 kernel: xl0: link state changed to DOWN Oct 21 07:16:28 fbsd81 kernel: xl0: link state changed to UP While it was misbehaving, ifconfig reported: # ifconfig xl0 xl0: flags=8843 metric 0 mtu 1500 options=80009 ether 00:b0:d0:22:5a:14 inet6 fe80::2b0:d0ff:fe22:5a14%xl0 prefixlen 64 scopeid 0x1 inet 192.168.200.81 netmask 0xffffff00 broadcast 192.168.200.255 nd6 options=3 media: Ethernet autoselect (100baseTX) status: active Turning off unneeded features did not help: # ifconfig xl0 -vlanmtu -rxcsum # ifconfig xl0 xl0: flags=8843 metric 0 mtu 1500 options=80000 ether 00:b0:d0:22:5a:14 inet6 fe80::2b0:d0ff:fe22:5a14%xl0 prefixlen 64 scopeid 0x1 inet 192.168.200.81 netmask 0xffffff00 broadcast 192.168.200.255 nd6 options=3 media: Ethernet autoselect (100baseTX) status: active and neither did forcing it to 100baseTX, with either duplex setting: # ifconfig xl0 media 100baseTX mediaopt full-duplex # ifconfig xl0 xl0: flags=8843 metric 0 mtu 1500 options=80000 ether 00:b0:d0:22:5a:14 inet6 fe80::2b0:d0ff:fe22:5a14%xl0 prefixlen 64 scopeid 0x1 inet 192.168.200.81 netmask 0xffffff00 broadcast 192.168.200.255 nd6 options=3 media: Ethernet 100baseTX status: active # ifconfig xl0 mediaopt half-duplex # ifconfig xl0 xl0: flags=8843 metric 0 mtu 1500 options=80000 ether 00:b0:d0:22:5a:14 inet6 fe80::2b0:d0ff:fe22:5a14%xl0 prefixlen 64 scopeid 0x1 inet 192.168.200.81 netmask 0xffffff00 broadcast 192.168.200.255 nd6 options=3 media: Ethernet 100baseTX status: active but moving it back to the 10-BaseT hub (after restoring xl0 to autoselect) fixed the problem: # ifconfig xl0 media autoselect # ifconfig xl0 xl0: flags=8843 metric 0 mtu 1500 options=80000 ether 00:b0:d0:22:5a:14 inet6 fe80::2b0:d0ff:fe22:5a14%xl0 prefixlen 64 scopeid 0x1 inet 192.168.200.81 netmask 0xffffff00 broadcast 192.168.200.255 nd6 options=3 media: Ethernet autoselect (100baseTX) status: active [still yo-yo-ing, until moved to the old hub, then OK] # ifconfig xl0 xl0: flags=8843 metric 0 mtu 1500 options=80000 ether 00:b0:d0:22:5a:14 inet6 fe80::2b0:d0ff:fe22:5a14%xl0 prefixlen 64 scopeid 0x1 inet 192.168.200.81 netmask 0xffffff00 broadcast 192.168.200.255 nd6 options=3 media: Ethernet autoselect (10baseT/UTP) status: active Both connections were using the same (short) Cat5 cable, I tried two different ports on the 10/100 hub, and other systems work OK on that 10/100 hub. How do I get this interface to operate properly at 100MB?