* [dpdk-dev v1] crypto/qat: fix of qat build request session in mp
@ 2022-10-04 16:08 Kai Ji
2022-10-07 14:21 ` Power, Ciara
0 siblings, 1 reply; 3+ messages in thread
From: Kai Ji @ 2022-10-04 16:08 UTC (permalink / raw)
To: dev; +Cc: gakhil, Kai Ji, stable
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(-)
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;
--
2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [dpdk-dev v1] crypto/qat: fix of qat build request session in mp
2022-10-04 16:08 [dpdk-dev v1] crypto/qat: fix of qat build request session in mp Kai Ji
@ 2022-10-07 14:21 ` Power, Ciara
2022-10-27 9:53 ` Akhil Goyal
0 siblings, 1 reply; 3+ messages in thread
From: Power, Ciara @ 2022-10-07 14:21 UTC (permalink / raw)
To: Ji, Kai, dev; +Cc: gakhil, Ji, Kai, stable
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>
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [dpdk-dev v1] crypto/qat: fix of qat build request session in mp
2022-10-07 14:21 ` Power, Ciara
@ 2022-10-27 9:53 ` Akhil Goyal
0 siblings, 0 replies; 3+ messages in thread
From: Akhil Goyal @ 2022-10-27 9:53 UTC (permalink / raw)
To: Power, Ciara, Ji, Kai, dev; +Cc: Ji, Kai, stable
> > 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-10-27 9:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04 16:08 [dpdk-dev v1] crypto/qat: fix of qat build request session in mp Kai Ji
2022-10-07 14:21 ` Power, Ciara
2022-10-27 9:53 ` Akhil Goyal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).