From owner-freebsd-net@freebsd.org Mon Oct 19 08:46:57 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 BAA06A126B7 for ; Mon, 19 Oct 2015 08:46:57 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: from mail-io0-x244.google.com (mail-io0-x244.google.com [IPv6:2607:f8b0:4001:c06::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8798E61A for ; Mon, 19 Oct 2015 08:46:57 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: by iodz80 with SMTP id z80so16603766iod.3 for ; Mon, 19 Oct 2015 01:46:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=12UV9DqVx7popEa8h8OAeRa1r8pAa4DaMVwo0FButmA=; b=Z07PWgJlSn+EVIqesYrt08KJ2DMyB1HjEp8WQMGqfqN4w8afp9mED2uvfS3/AQy/BC L/XQZ52TGlk5h8jK4nD/Fz7MaVPJ5L7EJbzxlQuQUrqhPi2n6uCW7XFeH9cxMSxnC3J7 xAVstPTMmMraEFvdxTqvxsyHXXqvefrqnHJkA9pmLaIM7bNNUZcqd+6sMBFkj+MZVr2M GWyKLVdaSLaJQXPHkxK9bIrN7KOKbV8appGbhVtKDzCcLxIn7dGdQzP0FJ6hpQnVyepp qhnvYW5qhrLXwSVwGCp5m8qfaz5yc7LWsYtUwZp5/kHbaf4Am1Jz8z7oo/qsHJRfhJYT VdWQ== MIME-Version: 1.0 X-Received: by 10.107.158.10 with SMTP id h10mr7634667ioe.24.1445244416947; Mon, 19 Oct 2015 01:46:56 -0700 (PDT) Received: by 10.107.37.137 with HTTP; Mon, 19 Oct 2015 01:46:56 -0700 (PDT) In-Reply-To: References: <561F6BFB.7080103@freebsd.org> <20151016154512.T15983@sola.nimnet.asn.au> Date: Mon, 19 Oct 2015 16:46:56 +0800 Message-ID: Subject: Re: nice stuff from cloudflare (and, we need something like ethtool!) From: Sepherosa Ziehau To: Jim Thompson Cc: Ian Smith , "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Mon, 19 Oct 2015 08:46:57 -0000 On Fri, Oct 16, 2015 at 1:25 PM, Jim Thompson wrote: > > > >> On Oct 16, 2015, at 12:06 AM, Ian Smith wrote: >> >>> 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 > > Luigi already did netlink sockets for FreeBSD. > > https://github.com/luigirizzo/netlink-freebsd ha, the netlink for BSD, interesting :) -- Tomorrow Will Never Die