From owner-freebsd-hackers Fri Sep 28 6:44: 5 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id D998D37B40D for ; Fri, 28 Sep 2001 06:44:01 -0700 (PDT) Received: (from ken@localhost) by panzer.kdm.org (8.11.6/8.9.1) id f8SDhls36993; Fri, 28 Sep 2001 07:43:47 -0600 (MDT) (envelope-from ken) Date: Fri, 28 Sep 2001 07:43:47 -0600 From: "Kenneth D. Merry" To: Terry Lambert Cc: Jonathan Lemon , the_srinivas@hotmail.com, hackers@FreeBSD.ORG Subject: Re: TCP&IP cksum offload on FreeBSD 4.2 Message-ID: <20010928074347.A36960@panzer.kdm.org> References: <200109270157.f8R1vZ546863@prism.flugsvamp.com> <3BB42E50.B32F5E95@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3BB42E50.B32F5E95@mindspring.com>; from tlambert2@mindspring.com on Fri, Sep 28, 2001 at 01:01:20AM -0700 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 On Fri, Sep 28, 2001 at 01:01:20 -0700, Terry Lambert wrote: > Jonathan Lemon wrote: > > >I'm trying to use the TCP&IP checksum offload capability of the Netgear > > >GA620 NIC from a SMP FreeBSD 4.2R system running on a typical PIII SBC. > > >I did enable TCP&IP cksum offload for receive operations by setting the > > >if_hwassist flag in the driver /sys/pci/if_ti.c and verified that it is > > >working. However I'm unable to offload TCP&IP checksum for the send > > >operations. > > > > All you need to do is uncomment the TI_CSUM_FEATURES flag at the top > > of the file, and recompile. > > He didn't say his packet size, either. > > To the original poster: if you are sending jumbograms, the > buffer size on these cards is limited, so the entire packet > can't be in the card buffer at the same time, which means > that you can not offload the send checksum for jumbograms, > only for regular sized packets. You've got things confused. I think that may be a limitation of some SysKonnect boards, but certainly isn't a Tigon limitation. Tigon boards come with 512KB, 1MB, or 2MB (never seen one of these) of SRAM on board. The firmware takes a couple hundred KB, so you generally have at least 200KB, and possibly a good bit more for packet storage space on the card. So there is buffer space for a number of packets on both the send and receive sides, and checksumming works in both directions. > Also note that this card is not known to be the fastest > one ot there, so you may be better off doing the checksum > on your 1GHz+ host processor instead. You can get wire rate with a Tigon 2 board, with jumbo frames at least. (That's with checksum offloading enabled.) Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message