From owner-freebsd-net@FreeBSD.ORG Tue Sep 23 14:36:55 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6E062A4F; Tue, 23 Sep 2014 14:36:55 +0000 (UTC) Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com [IPv6:2a00:1450:400c:c05::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D28DC79F; Tue, 23 Sep 2014 14:36:54 +0000 (UTC) Received: by mail-wi0-f180.google.com with SMTP id q5so5227049wiv.1 for ; Tue, 23 Sep 2014 07:36:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=JlG6g2vzffeUkecOGOl4YNkg6u0eFPK5r7b0tNp+jPM=; b=LQ8wixvfTo36oKaq/NRO6xhY2WnE0DI+Bhtn5UUFZ7qHfVDfryyk3ycvyMMRs5B/vY 14EUNkfACJuF37h5YZ7j2FieREObyYgIK4hu97JNFZHikj2khDz3bdmWVHj5IluKhlVU sRMXxkKjqEQr8HMaUTCSUDoOgJqeRYUoecssWFI/mOQhZFhICR25dPx1P2VHbPFfGDUd kTL/CBQuQ4P0a8+kh60WBT8X01dbSj8r6TZIGfDL+qVqXpkssWvxjY1cG39HGlPGRwmA eq2TWF2h2Uga1wmwde9biW4h4PX6TimbFKjul4jnTTQDoD1XkaH7J9/trL/WqD6Btov4 JS8w== MIME-Version: 1.0 X-Received: by 10.194.108.41 with SMTP id hh9mr81402wjb.68.1411483012765; Tue, 23 Sep 2014 07:36:52 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.106.199 with HTTP; Tue, 23 Sep 2014 07:36:52 -0700 (PDT) In-Reply-To: <5421310C.5010406@FreeBSD.org> References: <5421310C.5010406@FreeBSD.org> Date: Tue, 23 Sep 2014 07:36:52 -0700 X-Google-Sender-Auth: QjR6qspiKWZfHmcMg-YEVNsrxJE Message-ID: Subject: Re: How do I balance bandwidth over several virtual NICs? From: Adrian Chadd To: "Alexander V. Chernikov" Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-net@freebsd.org" , Elof Ofel X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2014 14:36:55 -0000 On 23 September 2014 01:36, Alexander V. Chernikov wrote: > On 22.09.2014 23:46, Adrian Chadd wrote: >> Hi, >> >> Yes. >> >> * grab an ixgbe NIC and the -HEAD driver; (or cxgbe - I haven't gone >> and written RSS programming code for that just yet); >> * patch it to use a symmetric RSS key; >> * configure up N queues; >> * run an instance of snort on each TX/RX ring from the NIC. > Oh, wow. > I have a low priority task to do that. > Nice to see this in stock fbsd! > >> >> The last step requires that you have snort use netmap rather than just >> straight bpf - or maybe somehow there's a way to glue bpf into a >> single netmap ring. > I've wrote snort netmap DAG once, but it does not play well w/o > symmetric rss. > I've see if I can share it. That'd be great! I'll see if I can get -HEAD enabled with an optional symmetric RSS key. It shouldn't be too difficult. The problem is the current RSS setup uses the same key for all NICs. I _guess_ that isn't going to /really/ be a problem here - unless you really want your server to serve lots of traffic /and/ snort :) Then we just need a netmap enabled snort :) -a