From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A096C54EE9 for ; Fri, 2 Sep 2022 11:02:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235914AbiIBLCQ (ORCPT ); Fri, 2 Sep 2022 07:02:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235834AbiIBLCO (ORCPT ); Fri, 2 Sep 2022 07:02:14 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D441EA2DB6; Fri, 2 Sep 2022 04:02:13 -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 1oU4R8-000LQi-MU; Fri, 02 Sep 2022 21:02:11 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 02 Sep 2022 19:02:10 +0800 Date: Fri, 2 Sep 2022 19:02:10 +0800 From: Herbert Xu To: Weili Qian Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, wangzhou1@hisilicon.com, liulongfang@huawei.com Subject: Re: [PATCH] crypto: hisilicon/qm - return failure if vfs_num exceeds total VFs Message-ID: References: <20220827102756.8735-1-qianweili@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220827102756.8735-1-qianweili@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 27, 2022 at 06:27:56PM +0800, Weili Qian wrote: > The accelerator drivers supports users to enable VFs through the > module parameter 'vfs_num'. If the number of VFs to be enabled > exceeds the total VFs, all VFs are enabled. Change it to the same > as enabling VF through the 'sriov_numvfs' file. Returns -ERANGE > if the number of VFs to be enabled exceeds total VFs. > > Signed-off-by: Weili Qian > --- > drivers/crypto/hisilicon/qm.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt