From owner-freebsd-net@FreeBSD.ORG Mon Dec 22 02:08:59 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 085DD1065677 for ; Mon, 22 Dec 2008 02:08:59 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183]) by mx1.freebsd.org (Postfix) with ESMTP id CC0FA8FC16 for ; Mon, 22 Dec 2008 02:08:58 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by wa-out-1112.google.com with SMTP id m34so984318wag.27 for ; Sun, 21 Dec 2008 18:08:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=qTWOoAAR0WTjrHd+aCh5yn9MbUkLcYno4VOy0o+oBhg=; b=g8LJDA9li4pPQJxd6vKFqQ9RU7kYriez49mBA3fCPn7IN0L2F2ne/LxlUeA/NVw0al mNhzwmR1U97U7S64/C1XA6L3UWgyKIHY/tsoEaAEeY1WnLrXKyqbG0pxGN1BzXbvQg3I G1CTqjUbhtGTwf22rqxLIbE1q1fySULIpCtf8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=IyGAhen7Rl6rUEVJk4Q6R7C7VmHGp/arGKw0RbxK182EIF/WxtRnXyTWRVh/ZPWs2x SU2/lv0xkPRi+m+2UJEYUhPjOiAj413Gm9CRQ6r+iioZOXwn/wO/cVRF9UYfT0ADCSDy a/L/1VTk5WCn805ZtHlknDBowUmPBwiHrAVQI= Received: by 10.114.175.16 with SMTP id x16mr3667592wae.134.1229911738400; Sun, 21 Dec 2008 18:08:58 -0800 (PST) Received: by 10.114.12.2 with HTTP; Sun, 21 Dec 2008 18:08:58 -0800 (PST) Message-ID: <2a41acea0812211808y7178d2fp75467f19248d1be3@mail.gmail.com> Date: Sun, 21 Dec 2008 18:08:58 -0800 From: "Jack Vogel" To: pyunyh@gmail.com In-Reply-To: <20081222011929.GB86809@cdnetworks.co.kr> MIME-Version: 1.0 References: <20081222011929.GB86809@cdnetworks.co.kr> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Michael T?xen , FreeBSD Net Subject: Re: Checksum offloading 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: Mon, 22 Dec 2008 02:08:59 -0000 Our (Intel) hardware can do it, at least the newer adapters, and someone is working on it now btw. Jack On Sun, Dec 21, 2008 at 5:19 PM, Pyun YongHyeon wrote: > On Sat, Dec 20, 2008 at 10:31:39PM +0100, Michael T?xen wrote: > > Dear all, > > > > I'm currently analyzing how TCP/UDP checksum offloading works > > to find the best way to add SCTP checksum offloading. > > > > sys/mbuf.h has constants: > > #define CSUM_IP 0x0001 /* will csum IP */ > > #define CSUM_TCP 0x0002 /* will csum TCP */ > > #define CSUM_UDP 0x0004 /* will csum UDP */ > > which are used to signal which offloading is supported by the drive. > > But, if I understand the code correctly, this only > > applies to UDP/IPv4 and TCP/IPv4. > > What about IPv6? Would this require flags like CSUM_TCP6 and CSUM_UDP6 > > to signal that also offloading of UDP/IPv6 and TCP/IPv6 is supported? > > > > I'm asking this because we want to add CRC offloading for SCTP/IPv4 > > and SCTP/IPv6. We could only add one flag CSUM_SCTP and use it > > for IPv4 and IPv6 ar two flags CSUM_SCTP4 and CSUM_SCTP6... > > > > I guess you're right. FreeBSD still lacks IPv6 checksum offloading > related stuff. All recent hardwares support checksum offloading for > TCP/UDP/IPv6 as well as TSO for IPv6. Don't know SCTP checksum > offloading as I don't know any hardwares that can do SCTP checksum > offloading. Sun Netptune might have the capability but I didn't > check it though. > > > Best regards > > Michael > > -- > Regards, > Pyun YongHyeon > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >