Skip to contentSkip to conversation

crypto/qat: fix of qat build request session in mp

PATCH Applied Kai Ji 3 participants 3 messages Oct 4, 2022 – Oct 27, 2022 Crypto API

lore
Share & tools
lore

Kai Ji

author
#0 lore raw

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.

Fixes fb3b9f492205 ("crypto/qat: rework burst data path")
---
 drivers/crypto/qat/qat_sym.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/qat/qat_sym.c +1 -1
index 54c3d59a51..fd2d9eed3b 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw

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")

---

Applied
#2 lore raw
Quoted 5 lines
Quoted 5 lines

Subject: [dpdk-dev v1] 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.

Quoted 7 lines
Quoted 5 lines
Fixes fb3b9f492205 ("crypto/qat: rework burst data path")

---

Applied to dpdk-next-crypto
Thanks.