]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: hisilicon/hpre - support the hpre algorithm fallback
authorWeili Qian <qianweili@huawei.com>
Thu, 18 Dec 2025 13:44:51 +0000 (21:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Jan 2026 06:02:06 +0000 (14:02 +0800)
commit6aff4d977e2d582c5d6ff6afd5646c1a459490fa
tree1a6429250c6a92df5bf6670d8f4f292b42e0eb00
parent73398f85a430cfebc2ff06ab836d6d9eb1484c79
crypto: hisilicon/hpre - support the hpre algorithm fallback

When all hardware queues are busy and no shareable queue,
new processes fail to apply for queues. To avoid affecting
tasks, support fallback mechanism when hardware queues are
unavailable.

HPRE driver supports DH algorithm, limited to prime numbers up to 4K.
It supports prime numbers larger than 4K via fallback mechanism.

Fixes: 05e7b906aa7c ("crypto: hisilicon/hpre - add 'ECDH' algorithm")
Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/hpre/hpre_crypto.c