]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: hisilicon/zip - adjust the way to obtain the req in the callback function
authorChenghai Huang <huangchenghai2@huawei.com>
Thu, 18 Dec 2025 13:44:42 +0000 (21:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Jan 2026 06:02:06 +0000 (14:02 +0800)
commit19c2475ce1984cf675ebfbbeaa5509b2fb1887d6
tree83af14a953bc748c1e621fe288c8488b6ae0ca14
parent624a6760bf8464965c17c8df10b40b557eaa3002
crypto: hisilicon/zip - adjust the way to obtain the req in the callback function

In the shared queue design, multiple tfms use same qp, and one qp
need to corresponds to multiple qp_ctx. So use tag to obtain the
req virtual address. Build a one-to-one relationship between tfm
and qp_ctx. finaly remove the old get_tag operation.

Fixes: 2bcf36348ce5 ("crypto: hisilicon/zip - initialize operations about 'sqe' in 'acomp_alg.init'")
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/zip/zip_crypto.c