From owner-freebsd-net@FreeBSD.ORG Sat Jul 31 12:41:06 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 471D41065676 for ; Sat, 31 Jul 2010 12:41:06 +0000 (UTC) (envelope-from ml@netfence.it) Received: from cp-out9.libero.it (cp-out9.libero.it [212.52.84.109]) by mx1.freebsd.org (Postfix) with ESMTP id E5F658FC14 for ; Sat, 31 Jul 2010 12:41:05 +0000 (UTC) Received: from soth.ventu (151.51.20.251) by cp-out9.libero.it (8.5.107) id 4C4029D10295C75D; Sat, 31 Jul 2010 14:29:03 +0200 Received: from alamar.ventu (alamar.ventu [10.1.2.18]) by soth.ventu (8.14.4/8.14.3) with ESMTP id o6VCT2O6081796; Sat, 31 Jul 2010 14:29:02 +0200 (CEST) (envelope-from ml@netfence.it) Message-ID: <4C54170E.2050807@netfence.it> Date: Sat, 31 Jul 2010 14:29:02 +0200 From: Andrea Venturoli User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; it-IT; rv:1.9.1.11) Gecko/20100724 Thunderbird/3.0.6 MIME-Version: 1.0 To: pyunyh@gmail.com References: <4C209C22.7080900@netfence.it> <20100701224100.GG7090@michelle.cdnetworks.com> In-Reply-To: <20100701224100.GG7090@michelle.cdnetworks.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Atheros ale problems X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jul 2010 12:41:06 -0000 Il 07/02/10 00:41, Pyun YongHyeon ha scritto: > Hello. >> >> I'm having problems with 8.0/amd64 with the following card: >> >> ale0@pci0:1:0:0: class=0x020000 card=0x83041043 chip=0x10261969 >> rev=0xb0 hdr=0x00 >> vendor = 'Attansic (Now owned by Atheros)' >> device = 'PCI-E ETHERNET CONTROLLER (AR8121/AR8113 )' >> class = network >> subclass = ethernet >> >> This is connected to a 100Mb/s Full Duplex switch with no fancy features. >> >> >> >> Sometimes, while connected through ssh to this box, I get kicked out with: >> Disconnecting: Corrupted MAC on input. >> or: >> Disconnecting: Bad packet length 1686869659. >> >> At the same time on the server's log and console, I see: >> >> kernel: ale0: watchdog timeout -- resetting >> kernel: ale0: could not disable Tx/Rx MAC(0x00000008)! >> kernel: ale0: link state changed to DOWN >> kernel: ale0: link state changed to UP >> >> I'm setting up this box, so I can't speak of other >> protocols/applications yet. >> >> >> >> I saw some threads about this dating back to 2008 and related to EEEPCs, >> but this was supposed to be fixed. >> >> Any help? >> > Show me the output of "ifconfig ale0" and "sysctl dev.ale.0.stats". > And see whether your switch also agrees on resolved speed/duplex of > established link. Sorry for taking so long: the machine had been shut down nad was moved in production and powered back up only yesterday. So far I didn't see that problem again, but I don't think it is sustaining as much traffic as when I was installing everything. Also the switch it was connected to at the time was a 100Mb/s one; the one it's connected to now is 1000Mb/s. In both case it is/was a dumb switch and I had no physical access, so I could not check the lights. So I doubt the data you asked for can help, however: # ifconfig ale0 ale0: flags=8843 metric 0 mtu 1500 options=319a ether 00:26:18:d6:6a:e5 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 media: Ethernet autoselect (1000baseT ) status: active # sysctl dev.ale.0.stats dev.ale.0.stats.rx.good_frames: 213391 dev.ale.0.stats.rx.good_bcast_frames: 159179 dev.ale.0.stats.rx.good_mcast_frames: 140 dev.ale.0.stats.rx.pause_frames: 1288 dev.ale.0.stats.rx.control_frames: 0 dev.ale.0.stats.rx.crc_errs: 0 dev.ale.0.stats.rx.len_errs: 0 dev.ale.0.stats.rx.good_octets: 18379370 dev.ale.0.stats.rx.good_bcast_octets: 13706715 dev.ale.0.stats.rx.good_mcast_octets: 13375 dev.ale.0.stats.rx.runts: 0 dev.ale.0.stats.rx.fragments: 0 dev.ale.0.stats.rx.frames_64: 264057 dev.ale.0.stats.rx.frames_65_127: 15812 dev.ale.0.stats.rx.frames_128_255: 43486 dev.ale.0.stats.rx.frames_256_511: 11514 dev.ale.0.stats.rx.frames_512_1023: 129 dev.ale.0.stats.rx.frames_1024_1518: 167 dev.ale.0.stats.rx.frames_1519_max: 0 dev.ale.0.stats.rx.trunc_errs: 0 dev.ale.0.stats.rx.fifo_oflows: 0 dev.ale.0.stats.rx.rrs_errs: 0 dev.ale.0.stats.rx.align_errs: 0 dev.ale.0.stats.rx.filtered: 120486 dev.ale.0.stats.tx.good_frames: 71638 dev.ale.0.stats.tx.good_bcast_frames: 2 dev.ale.0.stats.tx.good_mcast_frames: 0 dev.ale.0.stats.tx.pause_frames: 0 dev.ale.0.stats.tx.control_frames: 0 dev.ale.0.stats.tx.excess_defers: 0 dev.ale.0.stats.tx.defers: 0 dev.ale.0.stats.tx.good_octets: 66527894 dev.ale.0.stats.tx.good_bcast_octets: 0 dev.ale.0.stats.tx.good_mcast_octets: 0 dev.ale.0.stats.tx.frames_64: 3611 dev.ale.0.stats.tx.frames_65_127: 14373 dev.ale.0.stats.tx.frames_128_255: 3796 dev.ale.0.stats.tx.frames_256_511: 2106 dev.ale.0.stats.tx.frames_512_1023: 3108 dev.ale.0.stats.tx.frames_1024_1518: 44644 dev.ale.0.stats.tx.frames_1519_max: 0 dev.ale.0.stats.tx.single_colls: 0 dev.ale.0.stats.tx.multi_colls: 0 dev.ale.0.stats.tx.late_colls: 0 dev.ale.0.stats.tx.excess_colls: 0 dev.ale.0.stats.tx.abort: 0 dev.ale.0.stats.tx.underruns: 0 dev.ale.0.stats.tx.desc_underruns: 0 dev.ale.0.stats.tx.len_errs: 0 dev.ale.0.stats.tx.trunc_errs: 120 bye & Thanks av.