DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ciara Power <ciara.power@intel.com>
To: Kai Ji <kai.ji@intel.com>
Cc: dev@dpdk.org, Ciara Power <ciara.power@intel.com>
Subject: [PATCH 2/2] crypto/scheduler: fix op session in pkt size distr mode
Date: Tue, 25 Oct 2022 14:14:29 +0000	[thread overview]
Message-ID: <20221025141429.3463350-2-ciara.power@intel.com> (raw)
In-Reply-To: <20221025141429.3463350-1-ciara.power@intel.com>

The index for sess_ctx was incorrect when setting the op session.

Fixes: 6812b9bf470e ("crypto/scheduler: use unified session")

Signed-off-by: Ciara Power <ciara.power@intel.com>
---
 drivers/crypto/scheduler/scheduler_pkt_size_distr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/scheduler/scheduler_pkt_size_distr.c b/drivers/crypto/scheduler/scheduler_pkt_size_distr.c
index 396cc3723d..41f05e6a47 100644
--- a/drivers/crypto/scheduler/scheduler_pkt_size_distr.c
+++ b/drivers/crypto/scheduler/scheduler_pkt_size_distr.c
@@ -148,7 +148,7 @@ schedule_enqueue(void *qp, struct rte_crypto_op **ops, uint16_t nb_ops)
 		target[3] = !(job_len[3] & psd_qp_ctx->threshold);
 		if (ops[i + 3]->sess_type == RTE_CRYPTO_OP_WITH_SESSION)
 			ops[i + 3]->sym->session =
-				sess_ctx[1]->worker_sess[target[3]];
+				sess_ctx[3]->worker_sess[target[3]];
 		p_enq_op = &enq_ops[target[3]];
 
 		if (p_enq_op->pos + in_flight_ops[p_enq_op->worker_idx] ==
-- 
2.25.1


  reply	other threads:[~2022-10-25 14:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-25 14:14 [PATCH 1/2] app/test-crypto-perf: fix number of scheduler sessions Ciara Power
2022-10-25 14:14 ` Ciara Power [this message]
2022-10-25 15:10 ` [EXT] " Akhil Goyal
2022-10-27  9:59   ` Akhil Goyal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221025141429.3463350-2-ciara.power@intel.com \
    --to=ciara.power@intel.com \
    --cc=dev@dpdk.org \
    --cc=kai.ji@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).