From owner-freebsd-arch@FreeBSD.ORG Sat Dec 15 19:11:26 2007 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81DBC16A418 for ; Sat, 15 Dec 2007 19:11:26 +0000 (UTC) (envelope-from kip.macy@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 4C89813C448 for ; Sat, 15 Dec 2007 19:11:26 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so2274371waf.3 for ; Sat, 15 Dec 2007 11:11:25 -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:content-transfer-encoding:content-disposition:references; bh=woJZIPW/sJEZpIYU2RnPVUN9MHnCMSQBsV531Gd5S4o=; b=p2cAWTN4c2BkQ3tv1slPyMb3HqAwxyJ4/cmSvCjg5DJsvlWKAOo0Ee4ytPu/lFOAAy6J1A+Mig6jcC6hJtr4v+RgHxuL3xVI5kK94onWZ6Xq77JtLL74DpPLJ/EUDcZbQJXdqhC2dvTU73qB/vgijPLKn4GUP07a1nvMWwBfwSA= 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:content-transfer-encoding:content-disposition:references; b=HG3zMnfHAQx5aLX2Qvdg3xRBLoHfKX4OfX5akEijahvszDrtaESGiCymez512aU8+jj/xQfANYG09Z/g91XJKWnH0n3IWx2CiGO2zrD4Mv6tFz2AGA7a8GD/2c0VQK3xWEtuWAaw+k7ztxmIsVnKnD9JRoGIEjIMaMVXzJDNrdI= Received: by 10.114.146.1 with SMTP id t1mr813439wad.20.1197745885372; Sat, 15 Dec 2007 11:11:25 -0800 (PST) Received: by 10.114.255.11 with HTTP; Sat, 15 Dec 2007 11:11:20 -0800 (PST) Message-ID: Date: Sat, 15 Dec 2007 11:11:20 -0800 From: "Kip Macy" To: "Robert Watson" In-Reply-To: <20071215184737.A85668@fledge.watson.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071215100351.Q70617@fledge.watson.org> <20071215152959.V85668@fledge.watson.org> <20071215184737.A85668@fledge.watson.org> Cc: FreeBSD Current , freebsd-arch@freebsd.org Subject: Re: pending changes for TOE support X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Dec 2007 19:11:26 -0000 > > Undoubtably this is true for high-end systems sporting PCIe interfaces with > 10gbps cards, but we also run in other configurations. A complaint we've had > a fair amount in the last few years is that our work has increasingly targeted > high-end systems where overhead is in cache misses, and decreasingly targeted > low-end systems where overhead is in instruction count. While you offer the > opportunity to compile out some of this, I think we should try to make these > things capable of being fast in both circumstances without multiple compile > paths where it's easy. Ok. That was the intent of the initial design. The design intent, however, was that it would be compiled out on slower platforms - sparc64, arm, mips etc. > Ideally, we'd make the ifdef very, very small, as it's well-known that when we > have two mutually exclusive code paths and one isn't compiled or used > frequently, it rots. Good point. > > >> I find myself wondering if the offload option should be a TCP socket option > >> rather than a socket-layer option, but don't have strong feelings about > >> this. > > > > The assumption is that, if you a) pay the extra for a version of the card > > that supports TOE and b) you load the toe module (it isn't part of the NIC > > driver) that you want your existing software to have its connections > > offloaded. I don't know of any customers that want to modify their user > > applications to selectively enable TOE. > > I think you mis-understood my question -- I was wondering whether it should be > selectively disabled by an IP-layer socket option rather than a socket-layer > socket option. I did misunderstand, and yes a TCP_ socket option would probably be more appropriate.. > > That is the current usage model. At some point we may tie it into > > pf/ipf/ipfw to provide for offload policy. However, currently we offload all > > connections on an interface until we run out of TCAM entries. > > > >> Are you currently anticipating enabling the capability by default? > > > > Yes, *if the TOE driver is loaded*. > > I have somewhat mixed feelings about this, and feel like there should be > something eloquent to say about having functionality administratively enabled > rather than a default when compiled in, but can't quite figure out a nice > expression of that. I think it might have something to do with expecting > vendors of 10gbps cards to like shipping two modules for every device rather > than one, and having the right behavior out of the box if they do ship just > one. This is easy enough to arrange, just as we have TSO and jumbo frames that some drivers default to on and others default to off, we can have the TOE capability enabled or disabled by default by the driver. I think that if vendors left TOE disabled by default in the single module case that this would address your concerns, would it not? -Kip