patch 'crypto/scheduler: fix queue pair in scheduler failover' has been queued to stable release 19.11.13

christian.ehrhardt at canonical.com christian.ehrhardt at canonical.com
Thu Jul 7 09:54:53 CEST 2022


Hi,

FYI, your patch has been queued to stable release 19.11.13

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 07/09/22. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/cpaelzer/dpdk-stable-queue

This queued commit can be viewed at:
https://github.com/cpaelzer/dpdk-stable-queue/commit/ae21e9dac01ee87a672e5648811b108a8bdd32f6

Thanks.

Christian Ehrhardt <christian.ehrhardt at canonical.com>

---
>From ae21e9dac01ee87a672e5648811b108a8bdd32f6 Mon Sep 17 00:00:00 2001
From: Jakub Wysocki <jakubx.wysocki at intel.com>
Date: Wed, 15 Jun 2022 14:13:49 +0100
Subject: [PATCH] crypto/scheduler: fix queue pair in scheduler failover

[ upstream commit b302708673017b560644b954ed78ef6cdba1aa2d ]

This commit fixes wrong qp_id value in cryptodev scheduler in failover
mode.

Fixes: 37f075dad1e9 ("crypto/scheduler: add fail-over scheduling mode")

Signed-off-by: Jakub Wysocki <jakubx.wysocki at intel.com>
Acked-by: Fan Zhang <roy.fan.zhang 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 3a023b8ad3..b355fa04fd 100644
--- a/drivers/crypto/scheduler/scheduler_failover.c
+++ b/drivers/crypto/scheduler/scheduler_failover.c
@@ -156,6 +156,9 @@ scheduler_start(struct rte_cryptodev *dev)
 			((struct scheduler_qp_ctx *)
 				dev->data->queue_pairs[i])->private_qp_ctx;
 
+		sched_ctx->slaves[PRIMARY_SLAVE_IDX].qp_id = i;
+		sched_ctx->slaves[SECONDARY_SLAVE_IDX].qp_id = i;
+
 		rte_memcpy(&qp_ctx->primary_slave,
 				&sched_ctx->slaves[PRIMARY_SLAVE_IDX],
 				sizeof(struct scheduler_slave));
-- 
2.37.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2022-07-07 09:54:13.598545021 +0200
+++ 0058-crypto-scheduler-fix-queue-pair-in-scheduler-failove.patch	2022-07-07 09:54:10.953824544 +0200
@@ -1 +1 @@
-From b302708673017b560644b954ed78ef6cdba1aa2d Mon Sep 17 00:00:00 2001
+From ae21e9dac01ee87a672e5648811b108a8bdd32f6 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit b302708673017b560644b954ed78ef6cdba1aa2d ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index 5023577ef8..2a0e29fa72 100644
+index 3a023b8ad3..b355fa04fd 100644
@@ -22 +23 @@
-@@ -157,6 +157,9 @@ scheduler_start(struct rte_cryptodev *dev)
+@@ -156,6 +156,9 @@ scheduler_start(struct rte_cryptodev *dev)
@@ -26,2 +27,2 @@
-+		sched_ctx->workers[PRIMARY_WORKER_IDX].qp_id = i;
-+		sched_ctx->workers[SECONDARY_WORKER_IDX].qp_id = i;
++		sched_ctx->slaves[PRIMARY_SLAVE_IDX].qp_id = i;
++		sched_ctx->slaves[SECONDARY_SLAVE_IDX].qp_id = i;
@@ -29,3 +30,3 @@
- 		rte_memcpy(&qp_ctx->primary_worker,
- 				&sched_ctx->workers[PRIMARY_WORKER_IDX],
- 				sizeof(struct scheduler_worker));
+ 		rte_memcpy(&qp_ctx->primary_slave,
+ 				&sched_ctx->slaves[PRIMARY_SLAVE_IDX],
+ 				sizeof(struct scheduler_slave));


More information about the stable mailing list