From owner-freebsd-net Wed Jul 17 7:59: 9 2002 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 D041837B401 for ; Wed, 17 Jul 2002 07:59:07 -0700 (PDT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AF6943E31 for ; Wed, 17 Jul 2002 07:59:07 -0700 (PDT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 67374AE1CA; Wed, 17 Jul 2002 07:59:07 -0700 (PDT) Date: Wed, 17 Jul 2002 07:59:07 -0700 From: Alfred Perlstein To: shubha mr Cc: net@freebsd.org Subject: Re: IP Fragmentation Message-ID: <20020717145907.GY77219@elvis.mu.org> References: <20020717104943.57136.qmail@web14605.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020717104943.57136.qmail@web14605.mail.yahoo.com> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * shubha mr [020717 03:50] wrote: > Hi, > I am writing a gigabit ethernet driver for one of the > NICs.My hardware is capable of computing the checksum > and hence I am enabling per-packet handling of > TCP/IP/UDP checksum offload in transmit side.I would > like to know if there is a way by which I can tell the > upperguy that I will not be able to compute the tcp > checksum for the fragmented packets.That is I want to > indicate that checksum offload can be offloaded only > for the non fragmented and hence complete packets > only. From mbuf.h: #define CSUM_IP 0x0001 /* will csum IP */ #define CSUM_TCP 0x0002 /* will csum TCP */ #define CSUM_UDP 0x0004 /* will csum UDP */ #define CSUM_IP_FRAGS 0x0008 /* will csum IP fragments */ #define CSUM_FRAGMENT 0x0010 /* will do IP fragmentation */ Just use the first 3, have a look at the if_bge.c driver for an example. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message