Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2694684pxb; Tue, 23 Feb 2021 13:14:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzeo2ipaWq25zFBpbny2kIRiFg3R6E+5LjrXhfROZLggMLaVvKh9eSJmpIjVeHEkhVueyAM X-Received: by 2002:a05:6402:2298:: with SMTP id cw24mr2442553edb.157.1614114843090; Tue, 23 Feb 2021 13:14:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614114843; cv=none; d=google.com; s=arc-20160816; b=HGrcpc4JnAGkWVg2kTcrEsCBm10U7zn6eu2hlMNZ7nCgTxN+L4n3zRZCxzip5dCXfm /vCA+Br0nBzwarMcHSszUjSWUKnCW1q96BtYbLy52re9TqqjMA6DgmFZ7bkMJXkUUL6D FPbkEg7hTsqYSelfiCuL6MJQcrlrgKU2t+OiM9RVBEEqTD0SJlgsXlgcfPnjPD0de6K0 bHDZvxMfw3u+ecYAap2bnxXgxd0q2uRgh7NWat3DVFmFnSEO+VTi6Q5iFtvP4UcyTfsU dkHwn1LgrLoFTQuLN010pQM5vjH4k7LtNlpeGiJeHTsDjzOK00DSiCMDsuewhnpCHaWS W5PQ== 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=jC2/hb/9ppbnb+UKiWI1OkBcBDXkAKfnzQObeoeuRSg=; b=R16iphRsk9G7ldahiWO3LXnilDMorYpwnFkJDIMw2SCD25A7bBhOESNIzvPs4V4snE 63sMyaNGoaosO7VIElC46fjEZ3BMKoU9ewZP0NfGfx5vLl0f6kL65KEv9+bXPCWzmUMu Z31E+eeYygEYotaZ7SzXq4c96XII2mMcXOKMKgK4OQakf8B/uacUds6K398DhGLXaAjD tT1R6DFJSbEHXTzhetlFtTk7LCyMKWk61NtphargiFs00V0+DlJn+Ky3IIdydtHfC6+3 DlWCgVKjyN6k9ABu9d6OUs1ERhxTE8J1czliBM0FZONACx5YZzToSVNzoAws25GGOrdv xv7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YxQWpnQ2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h19si15299857edt.159.2021.02.23.13.12.59; Tue, 23 Feb 2021 13:14:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YxQWpnQ2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233167AbhBWUl2 (ORCPT + 99 others); Tue, 23 Feb 2021 15:41:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:46324 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232461AbhBWUl1 (ORCPT ); Tue, 23 Feb 2021 15:41:27 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 22C4264DD3; Tue, 23 Feb 2021 20:40:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614112847; bh=uGAJBC1OsCmtfvTh5XYTZ5wEtalNDzB3n4lHqeFc7k4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=YxQWpnQ2buDzVseqcgxrgYW1htp84hHQ6NXADwKzBwVfbNkEPwxb+09NQD3b17C2Y jdSSdjnJlqURRq4jgId0E2xWYTb3XLRhByr9Y58djbdQ+GXgxnO4yzE9CbacFN7Fgb gAy0ova4Kaxn9uXI//u/DiEoK0a/TxzOVra3sgShKkUE6pmD0pi2kCCAtEiQ2/tzn7 My3oYzDzazwLIe2mHzKdAGfqVtZUkEAm29aLfu7SYRI6qQvNMdUkF5L58Zp8oFQmO6 BcOHcQAIxYwcxwddFnf3v7JJ5q4DAt9PFlmKSZpG7eLmo0ryt+wESnGAXUGSBgAIxL Z58F/Oqeew8cg== Received: by mail-oi1-f176.google.com with SMTP id q186so11622oig.12; Tue, 23 Feb 2021 12:40:47 -0800 (PST) X-Gm-Message-State: AOAM531giY6o8IXLXgrn2he8/c25VSQFYU4DMUEZh7ErP7pCvyPFQHMK DkQCw4g9U/KNLS0zQ7loS0Jx7PD2QuFi/ACRpMs= X-Received: by 2002:aca:4fd3:: with SMTP id d202mr416278oib.11.1614112846578; Tue, 23 Feb 2021 12:40:46 -0800 (PST) MIME-Version: 1.0 References: <21525878.NYvzQUHefP@ubuntu-mate-laptop> <20210222155845.GI2643399@ziepe.ca> <20210222164645.GK2643399@ziepe.ca> <850d8bf2-c5a0-9fee-f95f-2dfc7d22a528@infradead.org> In-Reply-To: From: Arnd Bergmann Date: Tue, 23 Feb 2021 21:40:29 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drivers: infiniband: sw: rxe: fix kconfig dependency on CRYPTO To: Randy Dunlap Cc: Jason Gunthorpe , Leon Romanovsky , Arnd Bergmann , Zhu Yanjun , Julian Braha , Doug Ledford , RDMA mailing list , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 23, 2021 at 9:36 PM Arnd Bergmann wrote: > > For the specific case of CRC32, it might actually a good idea to change > the code to call into the CRC32 code directly instead of the CRYPTO_CRC32 > abstraction. Would that work for RDMA_RXE? On the more general question of whether a driver should 'select CRYPTO', this is how it's currently done for the other users, but I don't actually like this, and in general recommend against force-enabling another subsystem when a particular driver is enabled. My preference would be to change all drivers that require crypto services of some kind to use 'depends on CRYPTO' in combination with 'select CRYPTO_*', as this is what we do for other cross-subsystem dependencies. However, it seems unlikely that we can change it anytime soon, as the current method is widespread and changing the dependencies would break users that do 'make oldconfig' on an old configuration. Arnd