From owner-freebsd-net@FreeBSD.ORG Fri Jun 12 14:35:13 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 0AB73106564A; Fri, 12 Jun 2009 14:35:13 +0000 (UTC) (envelope-from gallatin@cs.duke.edu) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.freebsd.org (Postfix) with ESMTP id B94388FC23; Fri, 12 Jun 2009 14:35:12 +0000 (UTC) (envelope-from gallatin@cs.duke.edu) Received: from [172.31.193.10] (cpe-075-177-134-250.nc.res.rr.com [75.177.134.250]) (authenticated bits=0) by duke.cs.duke.edu (8.14.2/8.14.2) with ESMTP id n5CEZBQd007675 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 12 Jun 2009 10:35:12 -0400 (EDT) X-DKIM: Sendmail DKIM Filter v2.8.3 duke.cs.duke.edu n5CEZBQd007675 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cs.duke.edu; s=mail; t=1244817312; bh=0TRL4ZAynW0/vr3URFWS+yZYIusi00MGJEo4uyW6l3s=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=N9Et5dznHaH5eY0cM0cZrb0PPiq/RZzLM6ytJFsKPDv+v3aV3jBWV94WgsNaJokea QN790ioxOMOPeTOlWWnTbYJEcnQo2Gt0vwNZtHHCsDGXD12VJ4/lccG8LxCkuMWZp9 xmLvmbeEQbeNVZP3aMD23CWRF6RrmEcqO1PW/7oY= Message-ID: <4A326797.10503@cs.duke.edu> Date: Fri, 12 Jun 2009 10:35:03 -0400 From: Andrew Gallatin User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: "Bjoern A. Zeeb" References: <20090611184555.J22887@maildrop.int.zabbadoz.net> <20090612013406.GB72855@michelle.cdnetworks.co.kr> <20090612100900.M22887@maildrop.int.zabbadoz.net> In-Reply-To: <20090612100900.M22887@maildrop.int.zabbadoz.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 14:35:13 -0000 (apologies if this is the second copy you get, I've been having email issues) 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? 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. > LRO v4/v6 (is anyone doing or planning to and can talk about it, LRO v6?) > We do have IFCAP_LRO. I can do it for mxge, and then Jack can port it to his version. I really need to look at finally making mxge use Jack's port of the mxge LRO. Drew