From owner-freebsd-net@FreeBSD.ORG Thu Sep 8 14:13:20 2011 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 0C56B1065672; Thu, 8 Sep 2011 14:13:20 +0000 (UTC) (envelope-from bhutchings@solarflare.com) Received: from exchange.solarflare.com (mail.solarflare.com [216.237.3.220]) by mx1.freebsd.org (Postfix) with ESMTP id D65AF8FC08; Thu, 8 Sep 2011 14:13:19 +0000 (UTC) Received: from [192.168.4.185] ([88.96.1.126]) by exchange.solarflare.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 8 Sep 2011 07:13:18 -0700 From: Ben Hutchings To: John Baldwin Date: Thu, 08 Sep 2011 15:13:13 +0100 In-Reply-To: <201109080834.11607.jhb@freebsd.org> References: <1315221674.3092.282.camel@deadeye> <201109080834.11607.jhb@freebsd.org> Organization: Solarflare Communications Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.2- Content-Transfer-Encoding: 7bit Message-ID: <1315491196.23168.33.camel@deadeye> Mime-Version: 1.0 X-OriginalArrivalTime: 08 Sep 2011 14:13:19.0143 (UTC) FILETIME=[758B7B70:01CC6E31] X-TM-AS-Product-Ver: SMEX-8.0.0.1181-6.500.1024-18372.005 X-TM-AS-Result: No--17.794300-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No Cc: Takuya ASADA , freebsd-net@freebsd.org, jfv@freebsd.org, Navdeep Parhar Subject: Re: Adding Flow Director sysctls to ixgbe(4) 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: Thu, 08 Sep 2011 14:13:20 -0000 On Thu, 2011-09-08 at 08:34 -0400, John Baldwin wrote: > On Monday, September 05, 2011 7:21:12 am Ben Hutchings wrote: > > On Mon, 2011-09-05 at 15:51 +0900, Takuya ASADA wrote: > > > Hi, > > > > > > I implemented Ethernet Flow Director sysctls to ixgbe(4), here's a detail: > > > > > > - Adding removing signature filter > > > On linux version of ixgbe driver, it has ability to set/remove perfect > > > filter from userland using ethtool command. > > > I implemented similar feature, but on sysctl, and not perfect filter > > > but signature filter(which means hash collision may occurs). > > [...] > > > > Linux also has a generic interface to RX filtering and hashing > > (ethtool_rxnfc) which ixgbe supports; wouldn't it be better for FreeBSD > > to support something like that? > > Some sort of shared interface might be nice. The cxgb(4) and cxgbe(4) drivers > both provide their own tools to manipulate filters, though they do not > provide explicit steering IIRC. > > We would need to come up with some sort of standard interface (ioctls?) for > adding filters however. On Linux, filtering and steering are supported on the Freescale TSEC/FEC (gianfar), Intel Niantic (ixgbe), Solarflare (sfc) and Sun Neptune (niu) hardware. The exact capabilities of the hardware are all quite different and we're still recovering from the early mistake of defining two subtly different interfaces. I believe several other 10G Ethernet vendors have implemented these sorts of hardware capabilities. Ben. -- Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.