From owner-freebsd-net@freebsd.org Sat Oct 10 14:59:38 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 BA2699D267C; Sat, 10 Oct 2015 14:59:38 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com [IPv6:2a00:1450:4010:c04::229]) (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 4B915E3B; Sat, 10 Oct 2015 14:59:38 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: by lbbwt4 with SMTP id wt4so106921944lbb.1; Sat, 10 Oct 2015 07:59:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:cc:content-type; bh=QueWrcmBH9IzrmxPDJeDs/Z1YwVrPxeYvBDmMN1ndg0=; b=UcbadvgniHlgFUNtiTJJfGAVMndHwhCQasqQtifmbjhS3uP4t2xQAiJArECB4ljGd/ PgONVHiJBhgwDCJzKWpOIQI9PuuIOZ2UuxW4K4ziaIM0lU22U1SyRLYXSjTB9k61sFXp puxCdIJEViTa9Rv/0B+44iNmZE2Z023jTBy7lTVKrE8e5TRoJrKdd3KxdK2PgPrCD1e6 QcPpMfhic8Q2hdjOzKUiT+XuSkMQen9PktUlsb9SvS9KdMLojpTRUbp3LdtySHQE7epA Xc/QqpWcEP5qmh6dxhVJ/TLcwSPAid/R/K/AEniGxf+MEy+4ekQtj1ZXkxP+7znDN3e0 k0cw== MIME-Version: 1.0 X-Received: by 10.112.134.73 with SMTP id pi9mr8835510lbb.83.1444489175975; Sat, 10 Oct 2015 07:59:35 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.114.96.168 with HTTP; Sat, 10 Oct 2015 07:59:35 -0700 (PDT) Date: Sat, 10 Oct 2015 16:59:35 +0200 X-Google-Sender-Auth: 7V2hLJ343lt8wuaRDI8Gx9B45sI Message-ID: Subject: nice stuff from cloudflare (and, we need something like ethtool!) From: Luigi Rizzo To: FreeBSD Current Cc: "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: Sat, 10 Oct 2015 14:59:38 -0000 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. cheers luigi -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2217533 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+-------------------------------