From owner-freebsd-net@FreeBSD.ORG Fri Feb 3 06:20: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 A092016A420 for ; Fri, 3 Feb 2006 06:20:49 +0000 (GMT) (envelope-from kamal_ckk@yahoo.com) Received: from web30011.mail.mud.yahoo.com (web30011.mail.mud.yahoo.com [68.142.201.214]) by mx1.FreeBSD.org (Postfix) with SMTP id 1A4DD43D45 for ; Fri, 3 Feb 2006 06:20:48 +0000 (GMT) (envelope-from kamal_ckk@yahoo.com) Received: (qmail 86882 invoked by uid 60001); 3 Feb 2006 06:20:46 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=bF2xfhaxh09TY9Z1XwqFrJ7WYjEbyzLs2+obUyBpMJH6gYvlkSqIz9wC56Uhazcrm7YBno8liJOJsqLyjpcKZ88qpBavxBN9s66LLmtpDvbsD3OCrzoVeS8bia4YPxd02vfT4OOaKm6L4//96a6jb61rlLj6nDUYNq4fP/flyTU= ; Message-ID: <20060203062046.86880.qmail@web30011.mail.mud.yahoo.com> Received: from [202.161.131.69] by web30011.mail.mud.yahoo.com via HTTP; Thu, 02 Feb 2006 22:20:46 PST Date: Thu, 2 Feb 2006 22:20:46 -0800 (PST) From: kamal kc To: freebsd MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: 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 06:20:49 -0000 dear all, i want to offload ip checksum calculation to the NIC. I use 3Com 3c905B-TX NIC cards. I found that there are variables::>> int csum_flags; /* flags regarding checksum */ int csum_data; /* data field used by csum routines */ in struct pkthdr in mbuf.h. also i found the various flags for the hardware checksumming. but i don't know the exact steps i need to do in order to offload checksumming. should i set the csum_flags to CSUM_IP and point csum_data to the start of the ip header ?? it would be a great help if anybody could tell me what do i need to do ? thanks, kamal __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com