From owner-freebsd-net@FreeBSD.ORG Fri Feb 3 12:07:07 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 ADA8816A420 for ; Fri, 3 Feb 2006 12:07:07 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DA0343D49 for ; Fri, 3 Feb 2006 12:07:06 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.3/8.13.3) with ESMTP id k13C73Nu079207 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 3 Feb 2006 15:07:04 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.3/8.13.1/Submit) id k13C73N3079206; Fri, 3 Feb 2006 15:07:03 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Fri, 3 Feb 2006 15:07:03 +0300 From: Gleb Smirnoff To: kamal kc Message-ID: <20060203120703.GT60276@FreeBSD.org> Mail-Followup-To: Gleb Smirnoff , kamal kc , freebsd-net@freebsd.org References: <20060203082021.GL60276@FreeBSD.org> <20060203103054.38501.qmail@web30007.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20060203103054.38501.qmail@web30007.mail.mud.yahoo.com> User-Agent: Mutt/1.5.6i Cc: freebsd-net@FreeBSD.org 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: Fri, 03 Feb 2006 12:07:07 -0000 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 -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE