From owner-freebsd-net@FreeBSD.ORG Wed Jan 31 22:06:11 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E716E16A408; Wed, 31 Jan 2007 22:06:11 +0000 (UTC) (envelope-from cedric@decemplex.net) Received: from mail.decemplex.net (mail.decemplex.net [80.237.247.202]) by mx1.freebsd.org (Postfix) with ESMTP id 78A3C13C4C3; Wed, 31 Jan 2007 22:06:11 +0000 (UTC) (envelope-from cedric@decemplex.net) Received: from localhost (mail.decemplex.net [80.237.247.202]) by mail.decemplex.net (Postfix) with ESMTP id 9D90D7D1962; Wed, 31 Jan 2007 23:06:10 +0100 (CET) X-Virus-Scanned: amavisd-new at decemplex.net Received: from mail.decemplex.net ([80.237.247.202]) by localhost (mail.decemplex.net [80.237.247.202]) (amavisd-new, port 10024) with LMTP id C-6nNJmYmV-1; Wed, 31 Jan 2007 23:06:10 +0100 (CET) Received: from decemplex.loc (83-178-112-217.dyn.adsl.belcenter.be [217.112.178.83]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.decemplex.net (Postfix) with ESMTP id DA21A7D193C; Wed, 31 Jan 2007 23:06:09 +0100 (CET) Date: Wed, 31 Jan 2007 23:05:40 +0100 From: =?ISO-8859-1?Q?C=E9dric?= Jonas To: Erik Trulsson Message-ID: <20070131230540.2141488e@ganymed> In-Reply-To: <20070131212411.GA86267@owl.midgard.homeip.net> References: <20070131214705.0ee0ba67@ganymed> <20070131212411.GA86267@owl.midgard.homeip.net> X-Mailer: Claws Mail 2.7.1 (GTK+ 2.10.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_s.kHoGYz7ohP5cloys5DPiM; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: freebsd-net@freebsd.org, freebsd-current@freebsd.org Subject: Re: fxp(4) checksum (offloading?) errors 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: Wed, 31 Jan 2007 22:06:12 -0000 --Sig_s.kHoGYz7ohP5cloys5DPiM Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, 31 Jan 2007 22:24:11 +0100 Erik Trulsson wrote: > On Wed, Jan 31, 2007 at 09:47:05PM +0100, C=E9dric Jonas wrote: > > Hi, > >=20 > > I get TCP/UDP checksum errors with fxp(4). I noticed it after using > > Wireshark today: > >=20 > > Checksum: 0xac18 [incorrect, should be 0xfbc7 (maybe caused > > by checksum offloading?)] > >=20 > > for example. >=20 > Is that for incoming or outgoing packets? If it is for outgoing it is > perfectly normal and nothing to be worried about (assuming that your > NIC does checksum offloading.) Arghs, shame on me. You are fully right... I needed to know it, my first mail contains quasi the reason of the "bug" :)=20 However, thank you! >=20 > If it is for incoming packets it could be a real problem. >=20 >=20 > >=20 > > If I understand it more or less correctly, checksum offloading is > > performed by or with help of the NIC - only for TCP and UDP, where > > the checksum fails exactly... >=20 > Checksum offloading means that the calculation of the checksum is > done by the NIC instead of by the main CPU. For outgoing packets > this means that wireshark or tcpdump and all similar programs see the > packets before they have been handed over to the NIC, which means > that the correct checksum has not yet been calculated and probably > contains garbage. >=20 >=20 > > I didn't found a way to disable it, so I assume it's a bug in the > > driver... I don't know exactly which infos I must provide > > additionally to the following, so don't hesitate to ask more :) > >=20 > > Used NIC: > >=20 > > fxp0: port 0xa400-0xa43f mem > > 0xfb030000-0xfb030fff,0xfb000000-0xfb01ffff irq 16 at device > > 7.0 on pci2 > >=20 > > Used system: > >=20 > > FreeBSD ganymed 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sun Jan > > 21 16:07:51 CET 2007 > > root@ganymed:/usr/obj/usr/src/sys/GANYMED i386 > >=20 >=20 >=20 >=20 >=20 --=20 C=E9dric Jonas cedric@decemplex.net Mobile Phone: (32-494) 08 92 64 GPG ID: 30CCFE8D GPG Key: http://box.decemplex.net/~cedric/cedric.key.asc GPG Fingerprint: CF03 E1FD 9428 1B6B E971 B107 9044 AA99 30CC FE8D Jabber-ID: cedric@decemplex.net --Sig_s.kHoGYz7ohP5cloys5DPiM Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFwRLQkESqmTDM/o0RAg/EAJ9oqW84KKbOWTfp36blRvvBl1PESwCdFeqE 5DGJU9ooRX5ChM6R0AW9P3I= =nBDS -----END PGP SIGNATURE----- --Sig_s.kHoGYz7ohP5cloys5DPiM--