From owner-freebsd-net Wed Mar 20 22:40:29 2002 Delivered-To: freebsd-net@freebsd.org Received: from claven.cs.wisc.edu (claven.cs.wisc.edu [128.105.6.18]) by hub.freebsd.org (Postfix) with ESMTP id C9BAF37B420 for ; Wed, 20 Mar 2002 22:40:13 -0800 (PST) Received: from tux19.cs.wisc.edu (tux19.cs.wisc.edu [128.105.111.119]) by claven.cs.wisc.edu (8.9.2/8.9.2) with ESMTP id AAA11536 for ; Thu, 21 Mar 2002 00:40:13 -0600 (CST) Received: from localhost (haryadi@localhost) by tux19.cs.wisc.edu (8.9.2/8.9.2) with ESMTP id AAA06665 for ; Thu, 21 Mar 2002 00:40:13 -0600 (CST) X-Authentication-Warning: tux19.cs.wisc.edu: haryadi owned process doing -bs Date: Thu, 21 Mar 2002 00:40:12 -0600 (CST) From: Haryadi Gunawi To: net@freebsd.org Subject: Re: incorrect checksums with xl? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, Can someone help me point the source code where "the TCP/IP stack knows that the NIC is going to insert the checksums"? Is there anyway to disable checksum in the hardware so that the checksum will be done in software or to force the TCP/IP stack do the checksumming? My current project is to measure the TCP/IP processing overhead, I want to measure the performance with checksumming in the software. I use FreeBSD 4.4. thanks in advance Haryadi ps: I am not in the milis, so can you please cc me. > You are running tcpdump on the system that's sending the "bad" > packets, right? It makes perfect sense. The TCP/IP stack knows > that the NIC is going to insert the checksums, so it doesn't bother > calculating them itself. So BPF is handed packets in mbufs without > any checksums. On the way out to the wire, the NIC hardware/firmware > adds the checksums, but they don't show up in the mbufs that are being > sent to BPF. If you run tcpdump on the receiving system instead, > you'll find that the checksums seen there are valid. > The same thing happens in the bge driver, because it also offloads > checksum generation to the NIC. > John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message