From owner-freebsd-net@FreeBSD.ORG Fri Feb 3 08:20:24 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 3221F16A420 for ; Fri, 3 Feb 2006 08:20:24 +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 7E0EC43D46 for ; Fri, 3 Feb 2006 08:20:23 +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 k138KLXO076139 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 3 Feb 2006 11:20:22 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.3/8.13.1/Submit) id k138KLa4076138; Fri, 3 Feb 2006 11:20:21 +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 11:20:21 +0300 From: Gleb Smirnoff To: kamal kc Message-ID: <20060203082021.GL60276@FreeBSD.org> Mail-Followup-To: Gleb Smirnoff , kamal kc , freebsd References: <20060203062046.86880.qmail@web30011.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20060203062046.86880.qmail@web30011.mail.mud.yahoo.com> User-Agent: Mutt/1.5.6i Cc: freebsd 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 08:20:24 -0000 On Thu, Feb 02, 2006 at 10:20:46PM -0800, kamal kc wrote: k> i want to offload ip checksum calculation to the NIC. k> I use 3Com 3c905B-TX NIC cards. k> k> I found that there are variables::>> k> k> int csum_flags; /* flags regarding checksum */ k> int csum_data; /* data field used by csum routines */ k> k> in struct pkthdr in mbuf.h. k> k> also i found the various flags for the hardware checksumming. k> but i don't know the exact steps i need to do k> in order to offload checksumming. k> k> should i set the csum_flags to CSUM_IP and point k> csum_data to the start of the ip header ?? k> k> it would be a great help if anybody k> could tell me what do i need to do ? afaik, the xl(4) driver already supports checksum calculation. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE