From owner-freebsd-net@freebsd.org Wed Nov 6 01:49:03 2019 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AEE8C1B30A5 for ; Wed, 6 Nov 2019 01:49:03 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gate2.funkthat.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4778b33mHlz4Jls; Wed, 6 Nov 2019 01:49:03 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.15.2/8.15.2) with ESMTPS id xA61mmuZ068957 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 5 Nov 2019 17:48:48 -0800 (PST) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id xA61mmEO068956; Tue, 5 Nov 2019 17:48:48 -0800 (PST) (envelope-from jmg) Date: Tue, 5 Nov 2019 17:48:48 -0800 From: John-Mark Gurney To: Olivier =?iso-8859-1?Q?Cochard-Labb=E9?= Cc: Kurt Jaeger , freebsd-net@freebsd.org Subject: Re: 10g IPsec ? Message-ID: <20191106014848.GI8521@funkthat.com> Mail-Followup-To: Olivier =?iso-8859-1?Q?Cochard-Labb=E9?= , Kurt Jaeger , freebsd-net@freebsd.org References: <20191104194637.GA71627@home.opsec.eu> <20191105191514.GG8521@funkthat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 11.0-RELEASE-p7 amd64 X-PGP-Fingerprint: D87A 235F FB71 1F3F 55B7 ED9B D5FF 5A51 C0AC 3D65 X-Files: The truth is out there X-URL: https://www.funkthat.com/ X-Resume: https://www.funkthat.com/~jmg/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (gold.funkthat.com [127.0.0.1]); Tue, 05 Nov 2019 17:48:48 -0800 (PST) X-Rspamd-Queue-Id: 4778b33mHlz4Jls X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.995,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Nov 2019 01:49:03 -0000 Olivier Cochard-Labb wrote this message on Tue, Nov 05, 2019 at 23:45 +0100: > On Tue, Nov 5, 2019 at 8:15 PM John-Mark Gurney wrote: > > > AES-GCM can run at over 1GB/sec on a single core, so as long as the > > traffic can be processed by multiple threads (via multiple queues > > for example), it should be doable. > > > > > I didn't bench this setup (10Gb/s IPSec) but I believe we will have the > same problem with IPSec as with all VPN setups (like PPPoE or GRE): the > IPSec tunnel will generate one IP flow preventing load sharing between all > the NIC's RSS queues. > I'm not aware of improvement to remove this limitation. Can't the async crypto sysctl be used to help offload the crypto to other threads? if (V_async_crypto) crp->crp_flags |= CRYPTO_F_ASYNC | CRYPTO_F_ASYNC_KEEPORDER; But yes, I think the biggest limitation will be pushing all the data through a single queue... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."