From owner-freebsd-current@freebsd.org Tue Dec 13 13:45:51 2016 Return-Path: Delivered-To: freebsd-current@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 77F45C742B2; Tue, 13 Dec 2016 13:45:51 +0000 (UTC) (envelope-from cochard@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (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 207E48E3; Tue, 13 Dec 2016 13:45:51 +0000 (UTC) (envelope-from cochard@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id g23so110512796wme.1; Tue, 13 Dec 2016 05:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=eUCrU9y5ivlLpQNNxzv2J1kaNYPooHkG+3QgjP5xIL8=; b=s5zyGPI0sMuUKFdtSEoX8Htt2On3084p2QrCyFxUjoUo8JfjbmrbHdo/Xj8V7jhQPJ d8oQCDXdyj+asO8tWORRU9VIRNFrykhED15F3B0mB651z4NV5sX1RW3zEb01PFucuXhE pKFuNTNzkyyBieOA1YU5YAPH1csQnVaicZ2FfPM1Ca8ZxOPezjCl1/TLWfaU6mGRWoAm 5eSqCAmR/pUQYec9wDo7OeSo6C2yni/r95QSlDCluCCkJ59JuGXPeLjDCvmo5eYQyGqw b2kpGWVRfLTFcsijpQNWT6Rv0FLcm2QsG9P7z4x2UqCbtl+UjndV4FmsPgqG88YZzmqa WTtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=eUCrU9y5ivlLpQNNxzv2J1kaNYPooHkG+3QgjP5xIL8=; b=ZhhMxsRqGDfKfsTKCarGDQD7tucIjU9qC12F7vkgp4omaX0Go1piHaEVgTubjoxd8S HQouRrctALV7lDdRYpFYjioFMZtnpDgiwcEarvdrbaY7hRwgD9zf/f1LrWP/XozCr6eU fJBDt6Iln+XkdblnE6sg2yYn898wJ36dkQaNfTXOYyTlTFZSVReimmLDcU78PC5DWHlH FnUSrlXKQ38MOnz7zcb1CN9npXZeQvLXDoj0X+AYtyQL/Y8qh7r83ClqGZYL/tQzgoAF f4Kdk+pJVxSoZGtaEcBv/9jqpwPt+TNIEM2HPzEB8MdYKcMtMJZhI0Y31wroIC4z3wes XKyw== X-Gm-Message-State: AKaTC023wrjX3UG88mMqCc9xODMe2pYgLKdPzvyTYAAXmPlR+aLHpvJzPu95G/lYUswRCUED/Gkyz3AAjQwwvQ== X-Received: by 10.28.230.197 with SMTP id e66mr2888318wmi.12.1481636749447; Tue, 13 Dec 2016 05:45:49 -0800 (PST) MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.194.14.197 with HTTP; Tue, 13 Dec 2016 05:45:28 -0800 (PST) In-Reply-To: <2bd32791-944f-2417-41e9-e0fe1c705502@FreeBSD.org> References: <2bd32791-944f-2417-41e9-e0fe1c705502@FreeBSD.org> From: =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= Date: Tue, 13 Dec 2016 14:45:28 +0100 X-Google-Sender-Auth: 2i472WSMo25LPwPk4IWHNWCw86M Message-ID: Subject: Re: [RFC/RFT] projects/ipsec To: "Andrey V. Elsukov" Cc: "freebsd-current@freebsd.org" , "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2016 13:45:51 -0000 On Sun, Dec 11, 2016 at 12:07 AM, Andrey V. Elsukov wrote: > Hi All, > > I am pleased to announce that projects/ipsec, that I started several > months ago is ready for testing and review. > The main goals were: > * rework locking to make IPsec code more friendly for concurrent > processing; > * make lookup in SADB/SPDB faster; > * revise PFKEY implementation, remove stale code, make it closer > to RFC; > * implement IPsec VTI (virtual tunneling interface); > * make IPsec code loadable as kernel module. > > =E2=80=8BI've got a very simple configuration (static key),but I like the performance improvement brings by projects/ipsec :-) A simple packet-per-second using null encryption should be enough for benching the improvement, but my IPSec lab (using Equilibrium methodology) did a little more. https://github.com/ocochard/netbenches/blob/master/AMD_GX- 412TC_4Cores_Intel_i210AT/ipsec/results/fbsd12.projects- ipsec.equilibrium/graph.png Thanks for your work! Olivier