Re: [PATCH] crypto: hisilicon/qm - return failure if vfs_num exceeds total VFs

From: Herbert Xu
Date: Fri Sep 02 2022 - 07:02:17 EST


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 <qianweili@xxxxxxxxxx>
> ---
> drivers/crypto/hisilicon/qm.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt