From owner-freebsd-net@FreeBSD.ORG Fri Jun 12 17:45:07 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 2671C106566B for ; Fri, 12 Jun 2009 17:45:07 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mail.cksoft.de (mail.cksoft.de [195.88.108.3]) by mx1.freebsd.org (Postfix) with ESMTP id D37058FC14 for ; Fri, 12 Jun 2009 17:45:06 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from localhost (amavis.fra.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 2AFE941C759; Fri, 12 Jun 2009 19:45:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([195.88.108.3]) by localhost (amavis.fra.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id uuswp9nVMFJ0; Fri, 12 Jun 2009 19:45:05 +0200 (CEST) Received: by mail.cksoft.de (Postfix, from userid 66) id BBA0841C758; Fri, 12 Jun 2009 19:45:05 +0200 (CEST) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id 2363E4448E6; Fri, 12 Jun 2009 17:42:40 +0000 (UTC) Date: Fri, 12 Jun 2009 17:42:40 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Andrew Gallatin In-Reply-To: <4A3260BD.4040307@myri.com> Message-ID: <20090612173855.T22887@maildrop.int.zabbadoz.net> References: <20090611184555.J22887@maildrop.int.zabbadoz.net> <20090612013406.GB72855@michelle.cdnetworks.co.kr> <20090612100900.M22887@maildrop.int.zabbadoz.net> <4A3260BD.4040307@myri.com> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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: Fri, 12 Jun 2009 17:45:07 -0000 On Fri, 12 Jun 2009, Andrew Gallatin wrote: > Bjoern A. Zeeb wrote: > >>> As a sort of side-note, what about feature parity for INET6 for >>> existing IPV4 features like TSO? Who is working on that? >> >> Ok, maybe we should write down the big list now. What all can we have? >> What do we already have? What do we need? What needs to be changed? >> >> IPv4 CSUM offloading >> ULP (TCP|UDP|SCTP) CSUM offloading v4/v6 >> We do have IFCAP_RXCSUM,IFCAP_TXCSUM but that means a >> different CSUM_* subset for each card, right? >> >> We do have CSUM_IP, CSUM_TCP, CSUM_UDP, CSUM_SCTP. >> What will that be? insert "need to" before "be" > I'm not sure what you mean by this. > > Right now, at least on the receive side, tcp_input() for IPv6 > is completely ignoring ULP csum values sent up by drivers. > > > >> TSO v4/v6 >> We do have IFCAP_TSO4|IFCAP_TSO6 >> >> We do have CSUM_TSO, so that should become CSUM_TSO4 and we'll >> need to add CSUM_TSO6? > > Cool! I had no idea that IFCAP_TSO6 was used, but apparently it is. > When I get a chance to work on FreeBSD, I guess I'll flip that > bit on in mxge and see if I actually get any packets with CSUM_TSO > set. > > It would be helpful to have a CSUM_TSO{4,6} to reduce packet parsing. > But as yongari pointed out, its fairly silly to make drivers parse the > packets that the stack is sending them, and it would be ideal if > we could easily pull the information from somewhere. Yes, all for that; that's why we are talking about thing. Not sure what will make sense; perhaps we'll need to see what you all actually need for all the drivers and combinations? -- Bjoern A. Zeeb The greatest risk is not taking one.