[PATCH] crypto/scheduler: fix qp_id in scheduler failover
Jakub Wysocki
jakubx.wysocki at intel.com
Wed Jun 15 15:13:49 CEST 2022
This commit fixes wrong qp_id value in cryptodev scheduler in failover
mode.
Fixes: 37f075dad1e9 ("crypto/scheduler: add fail-over scheduling mode")
Cc: roy.fan.zhang at intel.com
Signed-off-by: Jakub Wysocki <jakubx.wysocki at intel.com>
---
drivers/crypto/scheduler/scheduler_failover.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/crypto/scheduler/scheduler_failover.c b/drivers/crypto/scheduler/scheduler_failover.c
index 5023577ef8..247aeb2f22 100644
--- a/drivers/crypto/scheduler/scheduler_failover.c
+++ b/drivers/crypto/scheduler/scheduler_failover.c
@@ -157,6 +157,9 @@ scheduler_start(struct rte_cryptodev *dev)
((struct scheduler_qp_ctx *)
dev->data->queue_pairs[i])->private_qp_ctx;
+ sched_ctx->workers[PRIMARY_WORKER_IDX].qp_id = i;
+ sched_ctx->workers[SECONDARY_WORKER_IDX].qp_id = i;
+
rte_memcpy(&qp_ctx->primary_worker,
&sched_ctx->workers[PRIMARY_WORKER_IDX],
sizeof(struct scheduler_worker));
--
2.17.1
--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263
This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.
More information about the dev
mailing list