Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp450136pxu; Tue, 1 Dec 2020 15:49:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwdcRoVMjcVmuSfky5UMsqaBFEW4gmFG64hefEFZbJofgs63ZQlw6zC5XZ12a+4GzJ/M5HO X-Received: by 2002:a17:906:175b:: with SMTP id d27mr5570223eje.260.1606866562319; Tue, 01 Dec 2020 15:49:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606866562; cv=none; d=google.com; s=arc-20160816; b=S9uXWxcmtZqSD6PvjJSTNR3KUk+st6KqKRvvnuuaf+TMiuapRsRgRHqrQf5lKUdEUf C5zsr/eEexLTNWVSuin37bPNFb6OfcFZtkrq9iH2WCKU9/Oz1M89nghf5Igpw4fUBchp wThFcKp+Oyz9Vyw3w/4Svp6OJkt74GZSKn6bQYfJzX9Y9Qkw65Nn0NiG5vQPqiEY1VAH 9rOlDLwA4Gd94wAJviXlUL65NZLe26gNfxvolS8sZzWAOT3IGX5l0b2mxhXqbqZejdXl eSl16b4WwvBt2JLz6s7uxcjf6kWzBmwsruMj9NcNdqlm6YnJO/RqawddJmr6bzXYUmuW 7P9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Yos/fpektDPk7qB1yazdcXyULVG0JaUAUelEFQM+qX0=; b=omWpj2Mm3uVDWdlE+2wERi881do0RQSVGRGP5bAoiJEAaIj0sSfnXBM4QbDZ+K4TaD SVKXStMzg/kWXOj95qOs0kOarwSMg5qXvG5MR0kAHs1kQyBty0XUDtCg7rCEZtsI8qkJ gMOIzLwx0iAZMlQPc0cn3GgilQFQmU19kn8pB8OrY75WawSviqqpmYpHRNDWovET3EfZ 1Y+5OIE9mlrQPqceSMPS65poWEpEn3zwQCYTky7XvcLDK6Ry+lplwvRmSO2gMZM2RiDM qEP5tfROLvAwbHO1VNTr+Vey/NyW1550/0Uk4xbHwHDtdOOicP6naeslgQPPu3r5b9Iq v8RA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k17si913956edf.245.2020.12.01.15.48.59; Tue, 01 Dec 2020 15:49:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726677AbgLAXs4 (ORCPT + 99 others); Tue, 1 Dec 2020 18:48:56 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:51560 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726530AbgLAXs4 (ORCPT ); Tue, 1 Dec 2020 18:48:56 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1kkFNU-0003Tb-Gc; Wed, 02 Dec 2020 10:48:13 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Wed, 02 Dec 2020 10:48:12 +1100 Date: Wed, 2 Dec 2020 10:48:12 +1100 From: Herbert Xu To: Ard Biesheuvel Cc: Linux Crypto Mailing List , Ben Greear , Steve deRosier Subject: Re: [PATCH v2] crypto: aesni - add ccm(aes) algorithm implementation Message-ID: <20201201234812.GA32538@gondor.apana.org.au> References: <20201201215722.GA31941@gondor.apana.org.au> <20201201220431.GA32072@gondor.apana.org.au> <20201201221628.GA32130@gondor.apana.org.au> <20201201231158.GA32274@gondor.apana.org.au> <20201201233024.GB32382@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Dec 02, 2020 at 12:41:36AM +0100, Ard Biesheuvel wrote: > > You just explained that TX typically runs in process context, whereas > RX is handled in softirq context. So how exactly are these going to > end up on the same core? When you receive a TCP packet via RX, this should wake up your user- space thread on the same CPU as otherwise you'll pay extra cost on pulling the data into memory again. > Yes, but IPsec will not use the synchronous interface. That doesn't matter when the underlying wireless code is using the sync interface. An async user is completely capable of making the aesni code-path unavailable to the sync user. > Fair enough. But it is unfortunate that we cannot support Ben's use > case without a lot of additional work that serves no purpose > otherwise. To the contrary, I think to fully support Ben's use case you must use the async code path. Otherwise sure you'll see good numbers when you do simple benchmarks like netperf, but when you really load up the system it just falls apart. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt