Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3548579imm; Sun, 16 Sep 2018 21:55:03 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY1jHPiuQjRUvZol2f7oSjmjOdzgwVoWWRc/1LWYDpFWk9qJaC/EKabUW520JWTGkzrL/xA X-Received: by 2002:a65:6086:: with SMTP id t6-v6mr21907204pgu.424.1537160103187; Sun, 16 Sep 2018 21:55:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537160103; cv=none; d=google.com; s=arc-20160816; b=X+yGrbzd31F5aEbmrE1lK7X44N6YTKGvCYMo63bE2qcBR6CjDumYyomg8mYBGSR/hx ZOdqHFrPgZIJXDqVCgCirI0nLs4oMR6nENvo1NaVKC6wxJ5q7HXlluvfIRA8pUIXJwMY YvY5N58z8tm4z+QnN6BXOUMPastxK8yZBbaX8zDJTwpEWgeeWrI9dZwAv06a+Ll4nDA0 mwn63vZKnAv0rmueUh/fPIrCGXgfo8LUqd5Fh5WVk9UAhjpHvoGKNNenhyzwJ1gDiUls r4YPxUJQyvyTrgDO20Zxb/xCiPLGQ5dYmCdI9hClFbAe0nt/3c9gDuoS+3JtKpcJiQIe B01w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=e+VLA/ft6DVgbyGy2KAFacG00yebCbYe3mhFm3rt7uk=; b=I0sK0KXcbA2yzUoMP/1U/uw0yiPhxyAOK4s9gX6vU3Iul6bixzDXi62EIdilJRLe/z kdguw8DqNL8sgAlDsMKwKDkRM8acGdX1i5069rMBDK4juc9VIDG6FVCXpPRdC+Ct44MU TpXkuWpQr+NM1LvT2wQALvH+Is2mBQI2IXHaIZ6j9Q/KNVxd0s+AZyTEICm1ZMlBOj4B OnbbkXY8kO4dKjNPx2g8jrOx/gLiY3rcntC8W0EcaS3of/juqNVtt/HHBhfoMsn2QCS+ PQwXJioJ8hnRTIXg+MHUQFqlj93hb5IoWVl3DVnhbfVw4SfNXEVsKFH8whkxVRp0Iom6 XpNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=zcTMgDaM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p123-v6si15570496pfg.281.2018.09.16.21.54.45; Sun, 16 Sep 2018 21:55:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=zcTMgDaM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728382AbeIQKUV (ORCPT + 99 others); Mon, 17 Sep 2018 06:20:21 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:60061 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727726AbeIQKUV (ORCPT ); Mon, 17 Sep 2018 06:20:21 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id b7d3c0e0; Mon, 17 Sep 2018 04:37:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type; s=mail; bh=tehqJDwOnRl6tOFqMImaggCXdTE=; b=zcTMgD aMutcQYzjb0SBrUEhV3/wrJAcgdjQ9h/mXDDYFS1y+Pu53uPwdEp6SmUyjSkY2Kr XHGseMmhTf3EQdOaCsEHuJyHhNLVws7XF5ruuioyCCyYfdAqcUc4WF8IMrZk+GkD thU8U//4hQ5Z4DGCRGnEj4/5Naka2iIVnP+FAfCmrkFzwn+8g3wQBQAnNyS9gW11 lzrWRO59e1LBG/00Ly8dx7EqbA9ojGDf4J3/lFaY0pxBaQD10DVCdgsxJxDzK6bK QJrJJpY+xCRLrDnh/ZtGnF5nlY66VjOosNIOHRq+9S88mlBJpnL8ABytzPnJiIq9 QbzvTePgeN1LV3aA== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id ff30b6b5 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO); Mon, 17 Sep 2018 04:37:16 +0000 (UTC) Received: by mail-oi0-f45.google.com with SMTP id 8-v6so17812126oip.0; Sun, 16 Sep 2018 21:54:39 -0700 (PDT) X-Gm-Message-State: APzg51BhQ54iUjMVssJiW29TwckAoyi9x/EErVraTvFiR6Y//UJBs8hf Jo5URHl34RKn7Gb2+V/6wZOJOyYB1guRRnJvX+c= X-Received: by 2002:aca:e795:: with SMTP id e143-v6mr16651766oih.252.1537160078417; Sun, 16 Sep 2018 21:54:38 -0700 (PDT) MIME-Version: 1.0 References: <20180914162240.7925-1-Jason@zx2c4.com> <20180914162240.7925-19-Jason@zx2c4.com> <72e893e7efbef428d4fd23b7332d9e829acd5e7d.camel@strongswan.org> In-Reply-To: <72e893e7efbef428d4fd23b7332d9e829acd5e7d.camel@strongswan.org> From: "Jason A. Donenfeld" Date: Mon, 17 Sep 2018 06:54:26 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next v4 18/20] crypto: port ChaCha20 to Zinc To: Martin Willi Cc: LKML , Netdev , Linux Crypto Mailing List , David Miller , Greg Kroah-Hartman , Samuel Neves , Andrew Lutomirski , Jean-Philippe Aumasson , Eric Biggers Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Martin, Thanks for running these and pointing this out. I've replicated the results with tcrypt and fixed some issues, and the next patch series should be a lot closer to what you'd expect, instead of the regression you noticed. Most of the slowdown happened as a result of over-eager XSAVEs, which I've now rectified. I'm still working on a few other facets of it, but I believe v5 will be more satisfactory when posted. Regards, Jason