crypto/qat: fix of qat build request session in mp
PATCH 1/1 crypto/qat: fix of qat build request session in mp
This patch fix the session pointer passed in set_session() when ctx has NULL build request pointer in multi-processes scenario.
--- drivers/crypto/qat/qat_sym.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/qat/qat_sym.c +1 -1
@@ -85,7 +85,7 @@ qat_sym_build_request(void *in_op, uint8_t *out_msg,if (unlikely (ctx->build_request[proc_type] ==NULL )) {int ret = qat_sym_gen_dev_ops[dev_gen].set_session ( - (void *)cdev, (void *)sess); + (void *)cdev, (void *)ctx);if (ret <0 ) { op->status =RTE_CRYPTO_OP_STATUS_INVALID_SESSION ;
Signature · 1 line
2.17.1
Hi Kai,
Quoted 7 lines
-----Original Message-----
From: Kai Ji <[email protected]>
Sent: Tuesday 4 October 2022 17:09
To: [email protected]
Cc: [email protected]; Ji, Kai <[email protected]>; [email protected]
Subject: [dpdk-dev v1]crypto/qat: fix of qat build request session in mp
Quoted 8 lines
This patch fix the session pointer passed in
set_session()when ctx has NULL build request pointer in multi-processes scenario.Fixes fb3b9f492205 ("crypto/qat: rework burst data path")Signed-off-by Kai Ji <[email protected]>---
Akhil Goyal
AppliedQuoted 5 lines
Quoted 5 lines
Subject: [dpdk-dev v1]
crypto/qat: fix of qat build request session in mpThis patch fix the session pointer passed in
set_session()when ctx has NULL build request pointer in multi-processes scenario.
Quoted 7 lines
Quoted 5 lines
Fixes fb3b9f492205 ("crypto/qat: rework burst data path")Signed-off-by Kai Ji <[email protected]>---
Acked-by Ciara Power <[email protected]>
Applied to dpdk-next-crypto
Thanks.