]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon/qm - return failure if vfs_num exceeds total VFs
authorWeili Qian <qianweili@huawei.com>
Sat, 27 Aug 2022 10:27:56 +0000 (18:27 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Sep 2022 10:38:07 +0000 (18:38 +0800)
commitdc7b37c74a14744812a4359fdc0083f41336a307
treec37b1b43c3b24a8ff1bce7045137bfa19761953d
parentfcaea78adf603dcf112594a1dca677e1b4c7d0b5
crypto: hisilicon/qm - return failure if vfs_num exceeds total VFs

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@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c