From owner-freebsd-net@freebsd.org Fri Oct 16 05:25:46 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 7C8F4A1628B for ; Fri, 16 Oct 2015 05:25:46 +0000 (UTC) (envelope-from jim@netgate.com) Received: from mail-ob0-x22b.google.com (mail-ob0-x22b.google.com [IPv6:2607:f8b0:4003:c01::22b]) (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 41A3FEA4 for ; Fri, 16 Oct 2015 05:25:46 +0000 (UTC) (envelope-from jim@netgate.com) Received: by obbda8 with SMTP id da8so82790527obb.1 for ; Thu, 15 Oct 2015 22:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netgate.com; s=google; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=AMj8wj/lPAjvWHq9tMKmrMrT9PFwF5AzP3xmkErWn98=; b=YsCXP1w5/6ihG28DMHt1vADlsWA7P9Oj9E02ygKrkx/GR+Qyj3X0qL7L3nDyTVvKHG 3oEQEE0KYBqj55gqVp7hrQS6ATo4nbhAkJMNY7/h4XpVtANpcCf6Qy/2sPo9qp+aNT8x 4ZhE2ZjdUs/xuUNCnxZiMuLkh8MzH9GrrE2jU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=AMj8wj/lPAjvWHq9tMKmrMrT9PFwF5AzP3xmkErWn98=; b=QSK8Lj8bA7nhtTWpx7Zh4pigL2M5h1r24Bn+9cXALmOMkpdAC/ATKZ4hqvbTwqXtb1 gs73Kvmq5GJdG4mW+BXdCjEU+wRX3naCC3wTCkbZfOkCLsEOPVh8CWI8k96gfj75yMKw /dVkqibzkK750QSLWwISJIkk4wD8dFiaaNr5HxP5sgAO55Vg2c8oPLplUucrwayAnerU wLY0Gn0qnuOZNnUhisFzd+vMDdjkRQgSku17RtKi9KRA14oa5MF25lEVnR1YIT6ccaFy zJvRT2f9+igL2y4s7DZBIlEs7r3vWI6ZlCVY1gf87JY5smW2jXttpLCP0ppd6PrY2WZn 6A3A== X-Gm-Message-State: ALoCoQni0llYWgV8AuY0qVw2Nv7v8gCGjaTu5cOdrkX6vjL5Q0MntsT9g+TvW31w8MuSHseBPI3T X-Received: by 10.182.19.234 with SMTP id i10mr507052obe.68.1444973144841; Thu, 15 Oct 2015 22:25:44 -0700 (PDT) Received: from [10.0.1.7] (cpe-72-182-54-177.austin.res.rr.com. [72.182.54.177]) by smtp.gmail.com with ESMTPSA id m10sm258122oex.12.2015.10.15.22.25.41 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Oct 2015 22:25:42 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: nice stuff from cloudflare (and, we need something like ethtool!) From: Jim Thompson X-Mailer: iPhone Mail (13A452) In-Reply-To: <20151016154512.T15983@sola.nimnet.asn.au> Date: Fri, 16 Oct 2015 00:25:41 -0500 Cc: Julian Elischer , freebsd-net@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: References: <561F6BFB.7080103@freebsd.org> <20151016154512.T15983@sola.nimnet.asn.au> To: Ian Smith 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:25:46 -0000 > 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 How difficult could it be to adapt ethtool to that? Jim