From owner-freebsd-net@freebsd.org Fri Oct 16 05:06:26 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1421CA16D97 for ; Fri, 16 Oct 2015 05:06:26 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 831E71FD8; Fri, 16 Oct 2015 05:06:24 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id t9G56MVb062277; Fri, 16 Oct 2015 16:06:22 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Fri, 16 Oct 2015 16:06:22 +1100 (EST) From: Ian Smith To: Julian Elischer cc: freebsd-net@freebsd.org Subject: Re: nice stuff from cloudflare (and, we need something like ethtool!) In-Reply-To: <561F6BFB.7080103@freebsd.org> Message-ID: <20151016154512.T15983@sola.nimnet.asn.au> References: <561F6BFB.7080103@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 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, 16 Oct 2015 05:06:26 -0000 On Thu, 15 Oct 2015 17:03:55 +0800, Julian Elischer wrote: > On 10/10/15 10:59 PM, Luigi Rizzo wrote: > > the nice folks at cloudflare implemented a nice feature > > in netmap that puts some queues of the NIC in netmap mode > > leaving others attached to the host stack > > > > https://blog.cloudflare.com/single-rx-queue-kernel-bypass-with-netmap/ > > > > and use ethtool (and native NIC filters) to steer traffic around. > > [FWIW, the chelsio native netmap driver is similar except that > > the netmap queue has a different MAC address] > > > > While their code was developed on linux, it should run > > almost unmodified on FreeBSD (and we plan to import it soon), > > except for the fact that we don't have ethtool hence no > > device-independent mechanism to configure traffic steering. > > > > We really need to address the latter. > > I suspect the answer may be a device dependent sysctl Interesting; care to flesh out your ideas a bit on how that might work? I've done nothing more than skim ethtool(8) on linuxcommand.org, and wondered why its functionality wasn't incorporated into ifconfig, but then ifconfig (on FreeBSD anyway) is tending towards obesity already .. cheers, Ian