From owner-freebsd-net@FreeBSD.ORG Sat Jun 13 07:15:09 2009 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 73DFE106564A for ; Sat, 13 Jun 2009 07:15:09 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from dvz-002.fh-muenster.de (mail.FH-Muenster.DE [193.174.88.2]) by mx1.freebsd.org (Postfix) with ESMTP id 283758FC1F for ; Sat, 13 Jun 2009 07:15:08 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from localhost (localhost.localdomain [127.0.0.1]) by dvz-002.fh-muenster.de (Postfix) with ESMTP id 8341E1CC5CD; Sat, 13 Jun 2009 09:13:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at dvz-002.fh-muenster.de X-Spam-Score: -3.977 X-Spam-Level: X-Spam-Status: No, score=-3.977 tagged_above=-999 required=6.31 tests=[ALL_TRUSTED=-1.665, AWL=-0.000, BAYES_00=-2.312] Received: from dvz-002.fh-muenster.de ([127.0.0.1]) by localhost (dvz-002.fh-muenster.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BLkDnjifmuiD; Sat, 13 Jun 2009 09:13:05 +0200 (CEST) Received: from [192.168.1.100] (p508FEA6E.dip.t-dialin.net [80.143.234.110]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) (Authenticated sender: tuexen) by dvz-002.fh-muenster.de (Postfix) with ESMTP id CF9D81CC5C7; Sat, 13 Jun 2009 09:13:04 +0200 (CEST) Message-Id: From: Michael Tuexen To: Andrew Gallatin In-Reply-To: <4A32F752.90003@cs.duke.edu> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Sat, 13 Jun 2009 09:15:06 +0200 References: <20090611184555.J22887@maildrop.int.zabbadoz.net> <20090612013406.GB72855@michelle.cdnetworks.co.kr> <20090612100900.M22887@maildrop.int.zabbadoz.net> <71535CB2-2784-4253-B67E-017FEAD57637@freebsd.org> <4A32F752.90003@cs.duke.edu> X-Mailer: Apple Mail (2.935.3) Cc: FreeBSD net mailing list Subject: Re: Ethernet NIC drivers depending unconditionally on INET 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: Sat, 13 Jun 2009 07:15:09 -0000 On Jun 13, 2009, at 2:48 AM, Andrew Gallatin wrote: > Michael Tuexen wrote: > > > I'm not sure if we need additional IFCAP_RXCSUM6 IFCAP_TXCSUM6 > > capabilities... Why would we want to enable IPv4 offloading and > > not IPv6 or vice versa? > > I'd assume that some older hardware supports IPv4 offloads, but > might not have support for IPv6 offloads. Sure. But then the driver only provides the CSUM_ flags which are appropriate. For example, a similar thing is already in the igb driver: 1167 if (ifp->if_capenable & IFCAP_TXCSUM) { 1168 ifp->if_hwassist |= (CSUM_TCP | CSUM_UDP); 1169 #if __FreeBSD_version >= 800000 1170 if (adapter->hw.mac.type == e1000_82576) 1171 ifp->if_hwassist |= CSUM_SCTP; 1172 #endif 1173 } For FreeBSD 8 and a particular chip, SCTP checksum offloading is supported. No need for a special IFCAP_TXCSUM. Best regards Michael > > Drew