From owner-freebsd-net@FreeBSD.ORG Mon Dec 22 01:19:38 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 3D48C106564A for ; Mon, 22 Dec 2008 01:19:38 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.230]) by mx1.freebsd.org (Postfix) with ESMTP id 059A58FC12 for ; Mon, 22 Dec 2008 01:19:37 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so3162694rvf.43 for ; Sun, 21 Dec 2008 17:19:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from :to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=0hPwVrmaxUcVV9rVydIPmUovq1h2cd5JPrSO6JKVWrk=; b=P0R3teq6Q6ofzyglo6USD6DYB/rVc59pUMUPLN6NICX40G8N+yqLWY7qrg23JsXg47 qubwZkydWXytCKYFugQclzEL4Z7/xn1EAMbrt6bCqUac8Qn03miVaLYMm99WefGp5pU+ +NKkgNUAZxlGzB281Z70J2PiU5GUN+HJrHsrE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=BbMNHPZ9NrTgEagsF2O3AoxyY86eTQzo0hSHSBrQ9GJvfP4FM1QCOzipRw6EmRIosw KTPuT8nFLcD+mMcKF7+hm1NN2G7TuAScCd6i6pmN2fD6ijw44eiiWvOwPENfGc6rEQ7i dAVNP8rSbLqV1VeMZgMH07WEAjVBshzL+7DuI= Received: by 10.141.29.18 with SMTP id g18mr2900273rvj.149.1229908777495; Sun, 21 Dec 2008 17:19:37 -0800 (PST) Received: from michelle.cdnetworks.co.kr ([211.53.35.84]) by mx.google.com with ESMTPS id k37sm8099845rvb.1.2008.12.21.17.19.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 21 Dec 2008 17:19:36 -0800 (PST) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id mBM1JUZW087149 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 22 Dec 2008 10:19:30 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id mBM1JT0Y087148; Mon, 22 Dec 2008 10:19:29 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Mon, 22 Dec 2008 10:19:29 +0900 From: Pyun YongHyeon To: Michael T?xen Message-ID: <20081222011929.GB86809@cdnetworks.co.kr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: FreeBSD Net Subject: Re: Checksum offloading X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com 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 01:19:38 -0000 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