]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: hisilicon/qm - add reference counting to queues for tfm kernel reuse
authorChenghai Huang <huangchenghai2@huawei.com>
Thu, 18 Dec 2025 13:44:48 +0000 (21:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Jan 2026 06:02:06 +0000 (14:02 +0800)
commit4705489742fdc294fe3de7bd9855432fb3cfe3cd
treef005a22d4126782cd01c1e2f3174cbd996f27ab0
parent72f3bbebff15e87171271d643ee2672fb8e92031
crypto: hisilicon/qm - add reference counting to queues for tfm kernel reuse

Add reference counting to queues. When all queues are occupied, tfm
will reuse queues with the same algorithm type that have already
been allocated in the kernel. The corresponding queue will be
released when the reference count reaches 1.

Reviewed-by: Longfang Liu <liulongfang@huawei.com>
Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c
include/linux/hisi_acc_qm.h