From owner-freebsd-hackers Fri Feb 27 10:12:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA29459 for freebsd-hackers-outgoing; Fri, 27 Feb 1998 10:12:49 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA29450 for ; Fri, 27 Feb 1998 10:12:46 -0800 (PST) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id KAA22397; Fri, 27 Feb 1998 10:12:10 -0800 (PST) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma022391; Fri Feb 27 10:11:46 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id KAA00364; Fri, 27 Feb 1998 10:11:46 -0800 (PST) From: Archie Cobbs Message-Id: <199802271811.KAA00364@bubba.whistle.com> Subject: Re: "Best" Fast Ethernet Card In-Reply-To: <199802270509.VAA26266@dingo.cdrom.com> from Mike Smith at "Feb 26, 98 09:09:51 pm" To: mike@smith.net.au (Mike Smith) Date: Fri, 27 Feb 1998 10:11:46 -0800 (PST) Cc: sthaug@nethelp.no, hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Smith writes: > > > > One *great* bonus is it will do IP, TCP and UDP checksums automagically > > > > in hardware! > > > > > > Oh great. This card was designed *explicitly* for Windows systems, > > > where they think it's funny for the network adapter driver to know > > > enough about the protocol layer to manage junk like this. > > > > Probably not. More likely it was simply meant to give lower CPU usage, > > given the right modifications to the TCP/IP stack. If you check the new > > Gigabit Ethernet cards that are becoming available, you'll find *most* > > of them will do IP checksum on-chip. > > It's odd then that these cards should be surfacing after NDIS 5 made > checksum calculations a feature of the NIC driver, no? > > > I've included below a recent Usenet article by Craig Partridge which > > explains some of the things that can be done to speed up BSD TCP/IP. > > You'll note that he explicitly mentions hardware checksums. > > Sure. However I think the point here is that you can only do hardware > checksums efficiently if you collapse the protocol stack to the point > where code has access to both the hardware and then TCP layer. > > That's expedient, and fast, but potentially *very* ugly. It also > raises the issue of fragment reassembly. There's nothing wrong with taking stable, existing, working code and optimizing it for the common case. For example, you could do it with an internal mbuf flag M_IPSUM that would indicate that the hardware has already verified the checksum on the packet. Sure it's not pretty, but it's a lot cleaner than some other stuff I've seen in there.. (the kernel, that is :-) -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message