Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19716962rwd; Wed, 28 Jun 2023 13:13:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4sqhT5TU/h5jxuCvwuMMKbpbi8QAUoO7RVYhzPOmM695Z6m2rM5kF97I8lvL2JJWcs1X/y X-Received: by 2002:a6b:b707:0:b0:780:cb36:6f24 with SMTP id h7-20020a6bb707000000b00780cb366f24mr19399492iof.2.1687983233208; Wed, 28 Jun 2023 13:13:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687983233; cv=none; d=google.com; s=arc-20160816; b=B/GPNK99tLlj+1599d69wOqoR4Ul8eNsddfIIFkR7XiBRzioaww8NIZYbRZsIYEp5Z Kmm6DbWnoK+arr6Ks/h1qzHk7QJDoC7E67xvRxVSc7aDectHiW07BrSN1DlSCf9/z3ND PsP3GNHwZgiFotV1nfmutkmovyTDa+rH9DTrdTpWK2gm/AwVH9BpP9kZgXIuv6fbGW+X QYmBRcKUdx6F+o3W96Mx58nJ67uWxMSRCxHOzX547wFupYssXPZScVfKK7yc/Ea4qjXB Sx1tOxYKtXtDjEUP+rzZFFBC1Bj3yIceF716Qcy47IyWfpULySfhTWjOLx1zhsbStCgx 9OIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qSvBLBYpZuuz4eEfb9EgOEcdzuOPHgtqP5O4l7UwFR4=; fh=n3c4pVJMOD1QIpjTysQzj712IgeXDIf2J4pss0HSXTE=; b=w6wEPrEpDggCKDK/1UaiMXq5A4IdisoxReVjq/F5x/8POM6FikrOUVOQis/kZz9Ti7 dxlVZkcrknfdi8a68vzkubA+ueJrL+ADDJ1+OL6F3Aa4YlBy05U5AxL3C+JurGtk/iBm Yo/26Cy4TlaJY3f5EfzUx+p1s517C8+FVIZvsc5MMyq8trra/h3U+0KNAMqBQQf5eS26 zcOtpKThRkVKWkY9Ru4sWT1ERX/+VqYTrK8Fx9pq1bm73covOTitwqJ5QPqPhcgL7YPe pP7yFtxiiOFut410Aav88DeYeV60kvewxpKC07dyOvKMQHqxl4rrYnSleHzBQKcouXkR +jtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=TMW3VGnd; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1-20020a63f041000000b0054fdb18c873si9470283pgj.645.2023.06.28.13.13.33; Wed, 28 Jun 2023 13:13:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=TMW3VGnd; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232108AbjF1UK0 (ORCPT + 99 others); Wed, 28 Jun 2023 16:10:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231865AbjF1UKW (ORCPT ); Wed, 28 Jun 2023 16:10:22 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB9C01BEA for ; Wed, 28 Jun 2023 13:10:21 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2b6a152a933so3599401fa.1 for ; Wed, 28 Jun 2023 13:10:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1687983019; x=1690575019; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qSvBLBYpZuuz4eEfb9EgOEcdzuOPHgtqP5O4l7UwFR4=; b=TMW3VGndLImf+jYiCOseUyyX2GF8rDxPCjsUsg4RQIFkABsPUOhI7D6pDNpB5/29qa VVkjTcOP+xlPfupfAiVmWpb7oZ8UiSRzDIBxYvyPhlqIb2LxAdTz97INO+gCvfVgvb8L 1U1/FZ6jtWNTZgWQucJHkJ3Q3p1NlihbkeWu0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687983019; x=1690575019; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qSvBLBYpZuuz4eEfb9EgOEcdzuOPHgtqP5O4l7UwFR4=; b=H7ubA6ayUaBriunEl8IPaW3njHbsXXlxozqzJMTf8gA7KfHgFkTAJc0zRHMjSUhdVn SVayfCWc/m/y9HL1ZMsDKeDQ+gc0VDlnk/Xd+AchwoIfYHewrOV/roie9cKf/N8t0RdY czvdYXG4EZzjDFE9EqoxuaiERRXBps95gkUISSUMwqlHzZdWNU/NQjS24GhygFypHeE7 wD18CfTJucgxTDk3Trl5sTxCDF/3rB89NwvA3AeyPrhHNc7IyanSE7s452ZIZeUMHgQO BBaT99iEIk4tEwvGYImdIHgMhGbFQ3QO/rEhKJANnbR+cubGR3Jvcfh7LFTXym/Kwk/P kUKQ== X-Gm-Message-State: AC+VfDwY8fqWx/xMKVm+vpFgpvmKUGFS/o6pktFeLVhyh07EaDYTC9SH As7qb4l/6kA9fpqt1rkUJwgqbr1gx5QF8qiAwburegkl X-Received: by 2002:a2e:2c0f:0:b0:2b4:765b:f6f0 with SMTP id s15-20020a2e2c0f000000b002b4765bf6f0mr20767501ljs.28.1687983019607; Wed, 28 Jun 2023 13:10:19 -0700 (PDT) Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com. [209.85.208.43]) by smtp.gmail.com with ESMTPSA id bo8-20020a0564020b2800b005184165f1fasm4957942edb.5.2023.06.28.13.10.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Jun 2023 13:10:19 -0700 (PDT) Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-51d7f350758so6602861a12.3 for ; Wed, 28 Jun 2023 13:10:18 -0700 (PDT) X-Received: by 2002:a05:6402:148e:b0:51d:7fa6:62ca with SMTP id e14-20020a056402148e00b0051d7fa662camr10124675edv.14.1687983018674; Wed, 28 Jun 2023 13:10:18 -0700 (PDT) MIME-Version: 1.0 References: <570802.1686660808@warthog.procyon.org.uk> <20230628062120.GA7546@sol.localdomain> <20230628173346.GA6052@sol.localdomain> <3695542.1687977261@warthog.procyon.org.uk> In-Reply-To: <3695542.1687977261@warthog.procyon.org.uk> From: Linus Torvalds Date: Wed, 28 Jun 2023 13:10:02 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [v2 PATCH 0/5] crypto: Add akcipher interface without SGs To: David Howells Cc: Ard Biesheuvel , Eric Biggers , Herbert Xu , Roberto Sassu , Stefan Berger , Mimi Zohar , dmitry.kasatkin@gmail.com, Jarkko Sakkinen , keyrings@vger.kernel.org, Linux Crypto Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, 28 Jun 2023 at 11:34, David Howells wrote: > > What about something like the Intel on-die accelerators (e.g. IAA and QAT)? I > think they can do async compression. I'm sure they can. And for some made-up benchmark it might even help. Do people use it in real life? The *big* wins come from being able to do compression/encryption inline, when you don't need to do double-buffering etc. Anything else is completely broken, imnsho. Once you need to double-buffer your IO, you've already lost the whole point. Linus