Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp411997pxu; Tue, 1 Dec 2020 14:38:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+u2xTr0ECsLICZOH1ZE975kFIrJx7XL3XQJqS9wqjkAKunadIoRpZh88XvsGcMU7fsuKq X-Received: by 2002:a17:906:814a:: with SMTP id z10mr5040036ejw.96.1606862302106; Tue, 01 Dec 2020 14:38:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606862302; cv=none; d=google.com; s=arc-20160816; b=NTSnQD1L1qOF6c5XM60tmtDwNjPqxr5ATizOUp8cs42W6n1QI2xz19Tlx7zHdUAOHJ mT5yOc3uWSik1vN+VbnLufjTtVD/5iJASUUmBLMa61cwzH3wAFH9oHnjiIBY8RAWKaL5 Cp8fX3Z1UIf1qh0jZ0noeBMrdQ2DTxAwN/JaSDm/ylR5iuBeetySApZIbcY5tCVSoonK BhVn93yZ7Oul4XCSQp+N/YMQYLY0VJbgqcW0rZNj9x9ariWgtYdOI6Ivaa9wOf1ppNGM GJJ1iy2u6d3d0+tFSTt1Z89TOA9iBCYY93T2pS4I5054ID3acRD1s8uZa333cRBlNufB t1sg== 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=gt0G/wpmW5jt+B9DHXtBtPWMjiu4/zQMKfEAAGwWLDk=; b=j6faR/M5voKoGEwoD++koLWD2Sg4S9TZTZzZtKJxpgoUJlY/Tp7PpwNgaoKwPxGFaO hTiaLrk7R37nxECXUZWyMhHM+aLb8O9nLXKYo6MlqSgUX7g/ejhErjgxGZV0dlxaJ17e fOIlWtNlFRJKtXuQnl/Uuy1PFnOms0ubsm9uZFCqxKXlwiv+zlyw+Q8dCeIWacAdHuEA WUb90vh/MWjEqUpPk00dpRHsWzK8B2kLAeSuYBxANKiuPhLWG/9vgKup9frGNzE0Ff0B Jr1dLs30GpkBysE5jzfgWWkkQlPcA4IRvpjwhWrs51nafqGR6GdaN0JBGg+RD3sFvugQ by6A== 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 m64si783049ede.159.2020.12.01.14.37.50; Tue, 01 Dec 2020 14:38: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 S1726178AbgLAWRR (ORCPT + 99 others); Tue, 1 Dec 2020 17:17:17 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:51272 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbgLAWRR (ORCPT ); Tue, 1 Dec 2020 17:17:17 -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 1kkDwi-00024w-II; Wed, 02 Dec 2020 09:16:29 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Wed, 02 Dec 2020 09:16:28 +1100 Date: Wed, 2 Dec 2020 09:16:28 +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: <20201201221628.GA32130@gondor.apana.org.au> References: <20201201194556.5220-1-ardb@kernel.org> <20201201215722.GA31941@gondor.apana.org.au> <20201201220431.GA32072@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 Tue, Dec 01, 2020 at 11:12:32PM +0100, Ard Biesheuvel wrote: > > What do you mean by just one direction? Ben just confirmed a The TX direction generally executes in process context, which would benefit from an accelerated sync implementation. The RX side on the other hand is always in softirq context. > substantial speedup for his use case, which requires the use of > software encryption even on hardware that could support doing it in > hardware, and that software encryption currently only supports the > synchronous interface. The problem is that the degradation would come at the worst time, when the system is loaded. IOW when you get an interrupt during your TX path and get RX traffic that's when you'll take the fallback path. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt