From owner-freebsd-net@FreeBSD.ORG Mon Jan 19 15:44:49 2009 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 74192106567C; Mon, 19 Jan 2009 15:44:49 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id EE7A08FC25; Mon, 19 Jan 2009 15:44:48 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1LOwIx-000FVb-3z; Mon, 19 Jan 2009 17:44:47 +0200 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n0JFiY4w090200 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 19 Jan 2009 17:44:34 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n0JFiYLc002485; Mon, 19 Jan 2009 17:44:34 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n0JFiXRN002484; Mon, 19 Jan 2009 17:44:33 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 19 Jan 2009 17:44:33 +0200 From: Kostik Belousov To: Pyun YongHyeon Message-ID: <20090119154433.GA2068@deviant.kiev.zoral.com.ua> References: <20090117152559.GN48057@deviant.kiev.zoral.com.ua> <20090119015225.GC75541@cdnetworks.co.kr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DocE+STaALJfprDB" Content-Disposition: inline In-Reply-To: <20090119015225.GC75541@cdnetworks.co.kr> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-Virus-Scanned: mail.terabit.net.ua 1LOwIx-000FVb-3z ad66f9550edf100e91bca37642c9c638 X-Terabit: YES Cc: freebsd-net@freebsd.org, yongari@freebsd.org Subject: Re: age(4) corrupts packets 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: Mon, 19 Jan 2009 15:45:03 -0000 --DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 19, 2009 at 10:52:25AM +0900, Pyun YongHyeon wrote: > On Sat, Jan 17, 2009 at 05:25:59PM +0200, Kostik Belousov wrote: > > I have to use a machine with ASUS motherboard, that has age(4) ethernet > > adapter. It seems that active use of the net causes corrupted frames, > > like the following ssh disconnect (after doing find / in the shell): > > Disconnecting: Corrupted MAC on input. > >=20 > > Machine runs reasonably latest stable/7. > >=20 > > Any advice ? Anything I should try to tweak ? Do you need additional > > information ? > >=20 >=20 > Would you show me the output of "sysctl dev.age.0.stats=3D1"? > Also try disabling Rx checksum offload(ifconfig age0 -rxcsum). =46rom the quick test, -rxcsum helped. age0 statistics: Transmit good frames : 758324 Transmit good broadcast frames : 8 Transmit good multicast frames : 0 Transmit pause control frames : 0 Transmit control frames : 0 Transmit frames with excessive deferrals : 0 Transmit deferrals : 0 Transmit good octets : 138644293 Transmit good broadcast octets : 480 Transmit good multicast octets : 0 Transmit frames 64 bytes : 7912 Transmit frames 65 to 127 bytes : 231717 Transmit frames 128 to 255 bytes : 431502 Transmit frames 256 to 511 bytes : 60564 Transmit frames 512 to 1024 bytes : 11121 Transmit frames 1024 to 1518 bytes : 15508 Transmit frames 1519 to MTU bytes : 0 Transmit single collisions : 0 Transmit multiple collisions : 0 Transmit late collisions : 0 Transmit abort due to excessive collisions : 0 Transmit underruns due to FIFO underruns : 0 Transmit descriptor write-back errors : 0 Transmit frames with length mismatched frame size : 0 Transmit frames with truncated due to MTU size : 0 Receive good frames : 1160903 Receive good broadcast frames : 557046 Receive good multicast frames : 1386 Receive pause control frames : 0 Receive control frames : 0 Receive CRC errors : 0 Receive frames with length errors : 0 Receive good octets : 480137225 Receive good broadcast octets : 63406156 Receive good multicast octets : 119196 Receive frames too short : 0 Receive fragmented frames : 0 Receive frames 64 bytes : 178796 Receive frames 65 to 127 bytes : 837139 Receive frames 128 to 255 bytes : 141222 Receive frames 256 to 511 bytes : 79755 Receive frames 512 to 1024 bytes : 21326 Receive frames 1024 to 1518 bytes : 542337 Receive frames 1519 to MTU bytes : 0 Receive frames too long : 0 Receive frames with FIFO overflow : 0 Receive frames with return descriptor overflow : 0 Receive frames with alignment errors : 0 Receive frames dropped due to address filtering : 639672 >=20 > > I can test patches on this box. > >=20 > > age0: mem 0xfeac0000-0= xfeafffff irq 17 at device 0.0 on pci2 > > age0: Reserved 0x40000 bytes for rid 0x10 type 3 at 0xfeac0000 > > age0: PCI device revision : 0x00b0 > > age0: Chip id/revision : 0x9006 > > age0: 1280 Tx FIFO, 2364 Rx FIFO > > age0: MSIX count : 0 > > age0: MSI count : 1 > > age0: attempting to allocate 1 MSI vectors (1 supported) > > msi: routing MSI IRQ 256 to vector 52 > > age0: using IRQ 256 for MSI > > age0: Using 1 MSI messages. > > age0: Read request size : 512 bytes. > > age0: TLP payload size : 128 bytes. > > age0: PCI VPD capability not found! > > miibus0: on age0 > > atphy0: PHY 0 on miibus0 > > atphy0: OUI 0x001374, model 0x0001, rev. 5 > > atphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX= , auto > > age0: bpf attached > > age0: Ethernet address: 00:1f:c6:b9:cc:a7 > > msi: Assigning MSI IRQ 256 to local APIC 0 > >=20 >=20 > --=20 > Regards, > Pyun YongHyeon --DocE+STaALJfprDB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkl0n+EACgkQC3+MBN1Mb4ijXQCcCKXWAW71Rv+Cj4Djp7Yjwogu x1gAoNWCnC2xsOg4hB9eYa+usK5ETn3v =aA/1 -----END PGP SIGNATURE----- --DocE+STaALJfprDB--