From owner-freebsd-hackers Thu Sep 27 7:36:12 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 132F237B434 for ; Thu, 27 Sep 2001 07:36:08 -0700 (PDT) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id KAA11167; Thu, 27 Sep 2001 10:36:02 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.3/8.9.1) id f8REZaU83753; Thu, 27 Sep 2001 10:35:36 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15283.14648.430630.163513@grasshopper.cs.duke.edu> Date: Thu, 27 Sep 2001 10:35:36 -0400 (EDT) To: "Louis A. Mamakos" Cc: Ronald G Minnich , hackers@FreeBSD.ORG Subject: Re: TCP&IP cksum offload on FreeBSD 4.2 In-Reply-To: <200109271416.f8REGaZ64624@whizzo.transsys.com> References: <200109271416.f8REGaZ64624@whizzo.transsys.com> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Louis A. Mamakos writes: > The other type of failure you might not catch are software errors; that > is, where a packet is produced by the network stack and then is > subsequently stomped on by a random store from some other code. Or > a mis-programmed I/O card with scatter/gather capability doesn't pick > up what was intended, etc. The Internet checksum is useful for > detecting this class of error. > No, you're missing the point almost entirely. The checksum is not skipped. It is calculated by the DMA engine based on the data that's transferred across the I/O bus on the receiver (and / or the sender). If the data is incorrect as seen by the receiving nic, the checksum will be wrong and the packet will be dropped. If the packet lands in the wrong place, you have much worse problems. Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message