Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp1056820imn; Tue, 26 Jul 2022 17:19:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sFptQr3q9JY8lm0LNyjC0xRCJFPHT0DBQUQkZs+jl8OojYvUqUiwRFtB+CZlpzGCZIgVy0 X-Received: by 2002:a17:903:24e:b0:16b:9fa2:41e5 with SMTP id j14-20020a170903024e00b0016b9fa241e5mr19482265plh.127.1658881168521; Tue, 26 Jul 2022 17:19:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658881168; cv=none; d=google.com; s=arc-20160816; b=sR7oMktAjd//Rv08AfRseIUiSQAqmpXph86F8898ibZsRIJV4fgsc8+xbsXag0JfpU 8qxETe5I3r+lMhPTwe/eCIOzcxRlYQI3CN5447H0HNmrxxvHdDhGHDSR0SswBnHU86j+ zw+rpF8RTsSddO78M3z3/uDR+FbbBk/TIVoEDSbr3XofJM/XbZTxWVU0d6AEzieCcOpb glBsJBdCmSsMmvHs2zF6RlgEq/4tEXm3XMKQObYnK6OvY/M3F9zLtGVXZVfB2mX/xhEd YwmP+hWrB9qjyyBwqefqLjX36i8++kLUzeHe1CEcJAdxfgdVmucKMVFw1NBp5nHIw7ST UrVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=+0wLzfcc25QEbSH0x/e87lvvQsoHpaSXnT8zJDDlGLY=; b=G7bdK9zJ0W7h0kQVSsI2i4+XNnX1GMA/qz8N76i9y6XGF/Sc/InRUHslXgNuZL3Atv rXzWcS7ZFzrrwHkljQZrtIyyDweHVkPq53Tr3beJ7saFc7+9OL5syPiss4krY1K8OZOU KRin368KAq3zhX2jHvJ0bVus1Ib2YSHdjmnAzq2JeR1lF3rzZoqSdtQdoYi0gE/ijJHz HKBIe0XmarFne69J0FHB8ju7JLUXyAASBItP9aaJg6AfzslcpDlX6Hu3evkh9BFDcBqQ TOEQ5xNsyoUyfzJ7rM9ASrMmE6zOEThnEQv2W5xNqjb7XoPd/AxYMXnVxYnBh/wmVpm6 6wUQ== ARC-Authentication-Results: i=1; mx.google.com; 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 x28-20020a637c1c000000b0040d9ebed1c6si18053398pgc.806.2022.07.26.17.18.26; Tue, 26 Jul 2022 17:19:28 -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; 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 S240009AbiG0ASY (ORCPT + 99 others); Tue, 26 Jul 2022 20:18:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233331AbiG0ASW (ORCPT ); Tue, 26 Jul 2022 20:18:22 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63B4632D9D; Tue, 26 Jul 2022 17:18:18 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1oGUkR-004pdo-2Y; Wed, 27 Jul 2022 10:18:00 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Wed, 27 Jul 2022 08:17:59 +0800 Date: Wed, 27 Jul 2022 08:17:59 +0800 From: Herbert Xu To: Dmitry Safonov Cc: linux-kernel@vger.kernel.org, Dmitry Safonov <0x7f454c46@gmail.com>, Andy Lutomirski , Ard Biesheuvel , David Ahern , "David S. Miller" , Eric Biggers , Eric Dumazet , Francesco Ruggeri , Hideaki YOSHIFUJI , Jakub Kicinski , Leonard Crestez , Paolo Abeni , Salam Noureddine , netdev@vger.kernel.org, linux-crypto@vger.kernel.org Subject: Re: [PATCH 0/6] net/crypto: Introduce crypto_pool Message-ID: References: <20220726201600.1715505-1-dima@arista.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220726201600.1715505-1-dima@arista.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 Tue, Jul 26, 2022 at 09:15:54PM +0100, Dmitry Safonov wrote: > Add crypto_pool - an API for allocating per-CPU array of crypto requests > on slow-path (in sleep'able context) and to use them on a fast-path, > which is RX/TX for net/ users (or in any other bh-disabled users). > The design is based on the current implementations of md5sig_pool. > > Previously, I've suggested to add such API on TCP-AO patch submission [1], > where Herbert kindly suggested to help with introducing new crypto API. What I was suggesting is modifying the actual ahash interface so that the tfm can be shared between different key users by moving the key into the request object. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt