diff mbox series

[v1] crypto/qat: fix of qat build request session in mp

Message ID 20221004160843.64749-1-kai.ji@intel.com (mailing list archive)
State Accepted, archived
Delegated to: akhil goyal
Headers show
Series [v1] crypto/qat: fix of qat build request session in mp | expand

Checks

Context Check Description
ci/iol-x86_64-unit-testing success Testing PASS
ci/iol-aarch64-compile-testing success Testing PASS
ci/iol-x86_64-compile-testing success Testing PASS
ci/github-robot: build success github build: passed
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-aarch64-unit-testing success Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/checkpatch success coding style OK

Commit Message

Kai Ji Oct. 4, 2022, 4:08 p.m. UTC
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")
Cc: stable@dpdk.org

Signed-off-by: Kai Ji <kai.ji@intel.com>
---
 drivers/crypto/qat/qat_sym.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ciara Power Oct. 7, 2022, 2:21 p.m. UTC | #1
Hi Kai,

> -----Original Message-----
> From: Kai Ji <kai.ji@intel.com>
> Sent: Tuesday 4 October 2022 17:09
> To: dev@dpdk.org
> Cc: gakhil@marvell.com; Ji, Kai <kai.ji@intel.com>; stable@dpdk.org
> 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.
> 
> Fixes: fb3b9f492205 ("crypto/qat: rework burst data path")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Kai Ji <kai.ji@intel.com>
> ---

Acked-by: Ciara Power <ciara.power@intel.com>
Akhil Goyal Oct. 27, 2022, 9:53 a.m. UTC | #2
> > 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.
> >
> > Fixes: fb3b9f492205 ("crypto/qat: rework burst data path")
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Kai Ji <kai.ji@intel.com>
> > ---
> 
> Acked-by: Ciara Power <ciara.power@intel.com>

Applied to dpdk-next-crypto
Thanks.
diff mbox series

Patch

diff --git a/drivers/crypto/qat/qat_sym.c b/drivers/crypto/qat/qat_sym.c
index 54c3d59a51..fd2d9eed3b 100644
--- a/drivers/crypto/qat/qat_sym.c
+++ b/drivers/crypto/qat/qat_sym.c
@@ -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;