From owner-freebsd-net@FreeBSD.ORG Sat Feb 4 15:29:49 2006 Return-Path: X-Original-To: freebsd-net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C21ED16A43C; Sat, 4 Feb 2006 15:29:49 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3052943DB8; Sat, 4 Feb 2006 15:15:51 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.3/8.13.3) with ESMTP id k14FFfop091598; Sat, 4 Feb 2006 18:15:41 +0300 (MSK) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.3/8.13.3/Submit) id k14FFft8091596; Sat, 4 Feb 2006 18:15:41 +0300 (MSK) (envelope-from yar) Date: Sat, 4 Feb 2006 18:15:40 +0300 From: Yar Tikhiy To: Gleb Smirnoff , kamal kc , freebsd-net@FreeBSD.org Message-ID: <20060204151540.GA91127@comp.chem.msu.su> References: <20060203082021.GL60276@FreeBSD.org> <20060203103054.38501.qmail@web30007.mail.mud.yahoo.com> <20060203120703.GT60276@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060203120703.GT60276@FreeBSD.org> User-Agent: Mutt/1.5.9i Cc: Subject: Re: offloading ip checksum calculation to the NIC 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: Sat, 04 Feb 2006 15:29:51 -0000 On Fri, Feb 03, 2006 at 03:07:03PM +0300, Gleb Smirnoff wrote: > On Fri, Feb 03, 2006 at 02:30:54AM -0800, kamal kc wrote: > k> so what do i need to do if i don't want to calculate > k> the ip checksum myself ? > k> > k> right now i am taking off packet from the kernel > k> and modifying some of the data content, and > k> outputting to the IFQ_HANDOFF myself. and i > k> am calculating the checksum myself. > k> > k> i guess if xl would support the > k> hardware checksumming i could use that > k> feature. > k> > k> i am just a beginner and i am not getting > k> the clear picture. > > If interfaces has enabled capabilities for checksum offloading, then > the kernel skips checksum calculation. > > See http://people.freebsd.org/~jlemon/csum.txt FWIW, the details of hardware-assisted checksumming are also documented on the mbuf(9) and ifnet(9) manpages. -- Yar