]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: hisilicon/hpre: extend tag field to 64 bits for better performance
authorlizhi <lizhi206@huawei.com>
Thu, 18 Dec 2025 13:44:44 +0000 (21:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Jan 2026 06:02:06 +0000 (14:02 +0800)
commit3a1984758197f7fd4c557dd98090e8e0cf9f498e
treee49b4074bca4c83018deb0c0ee549c89da40b96b
parent08eb67d23e5172a5d1e60f1f0acccee569fe10ba
crypto: hisilicon/hpre: extend tag field to 64 bits for better performance

This commit expands the tag field in hpre_sqe structure from 16-bit
to 64-bit. The change enables storing request addresses directly
in the tag field, allowing callback functions to access request messages
without the previous indirection mechanism.

By eliminating the need for lookup tables, this modification reduces lock
contention and associated overhead, leading to improved efficiency and
simplified code.

Fixes: c8b4b477079d ("crypto: hisilicon - add HiSilicon HPRE accelerator")
Signed-off-by: lizhi <lizhi206@huawei.com>
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.h
drivers/crypto/hisilicon/hpre/hpre_crypto.c