]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon/qm - set the number of queues for function
authorWeili Qian <qianweili@huawei.com>
Sat, 20 Mar 2021 11:27:45 +0000 (19:27 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Mar 2021 09:15:57 +0000 (20:15 +1100)
commitcc76ac3e3effcc59b4f91f58de86d251103a413e
tree6dee2d522c26d3028003e0651273f397ae19dd69
parent2c69218a5562c72e70a1427c64e8fb76f07245e3
crypto: hisilicon/qm - set the number of queues for function

Kunpeng930 supports queue doorbell isolation.
When doorbell isolation is enabled, it supports to obtain the
maximum number of queues of one function from hardware register.
Otherwise, the 'max_qp_num' is the total number of queues.

When assigning queues to VF, it is necessary to ensure that the number
of VF queues does not exceed 'max_qp_num'.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c
drivers/crypto/hisilicon/qm.h