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)
commit6250383a2083e8f66635d441977f74e0ee4e52f7
tree6dee2d522c26d3028003e0651273f397ae19dd69
parentc4392b46ee95be9815e682a1c8cb0aa2f92f07e2
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