patch 'crypto/scheduler: fix session size computation' has been queued to stable release 23.11.3

Xueming Li xuemingl at nvidia.com
Mon Nov 11 07:26:57 CET 2024


Hi,

FYI, your patch has been queued to stable release 23.11.3

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/30/24. 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://git.dpdk.org/dpdk-stable/log/?h=23.11-staging

This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=a082f249748fac379ce9e996ba8bf9a555b89a10

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From a082f249748fac379ce9e996ba8bf9a555b89a10 Mon Sep 17 00:00:00 2001
From: Julien Hascoet <ju.hascoet at gmail.com>
Date: Fri, 5 Jul 2024 14:57:56 +0200
Subject: [PATCH] crypto/scheduler: fix session size computation
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit b00bf84f0d3eb4c6a2944c918f697dc17cb3fce5 ]

The crypto scheduler session size computation was taking
into account only the worker session sizes and not its own.

Fixes: e2af4e403c15 ("crypto/scheduler: support DOCSIS security protocol")

Signed-off-by: Julien Hascoet <ju.hascoet at gmail.com>
Acked-by: Kai Ji <kai.ji at intel.com>
---
 .mailmap                                     | 1 +
 drivers/crypto/scheduler/scheduler_pmd_ops.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.mailmap b/.mailmap
index 4b8a131d55..8b9e849d05 100644
--- a/.mailmap
+++ b/.mailmap
@@ -711,6 +711,7 @@ Julien Aube <julien_dpdk at jaube.fr>
 Julien Castets <jcastets at scaleway.com>
 Julien Courtat <julien.courtat at 6wind.com>
 Julien Cretin <julien.cretin at trust-in-soft.com>
+Julien Hascoet <ju.hascoet at gmail.com>
 Julien Massonneau <julien.massonneau at 6wind.com>
 Julien Meunier <julien.meunier at nokia.com> <julien.meunier at 6wind.com>
 Július Milan <jmilan.dev at gmail.com>
diff --git a/drivers/crypto/scheduler/scheduler_pmd_ops.c b/drivers/crypto/scheduler/scheduler_pmd_ops.c
index a18f7a08b0..6e43438469 100644
--- a/drivers/crypto/scheduler/scheduler_pmd_ops.c
+++ b/drivers/crypto/scheduler/scheduler_pmd_ops.c
@@ -185,7 +185,7 @@ scheduler_session_size_get(struct scheduler_ctx *sched_ctx,
 		uint8_t session_type)
 {
 	uint8_t i = 0;
-	uint32_t max_priv_sess_size = 0;
+	uint32_t max_priv_sess_size = sizeof(struct scheduler_session_ctx);

 	/* Check what is the maximum private session size for all workers */
 	for (i = 0; i < sched_ctx->nb_workers; i++) {
--
2.34.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2024-11-11 14:23:05.999628822 +0800
+++ 0011-crypto-scheduler-fix-session-size-computation.patch	2024-11-11 14:23:05.022192842 +0800
@@ -1 +1 @@
-From b00bf84f0d3eb4c6a2944c918f697dc17cb3fce5 Mon Sep 17 00:00:00 2001
+From a082f249748fac379ce9e996ba8bf9a555b89a10 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit b00bf84f0d3eb4c6a2944c918f697dc17cb3fce5 ]
@@ -10 +12,0 @@
-Cc: stable at dpdk.org
@@ -20 +22 @@
-index 8004772125..15d9b61029 100644
+index 4b8a131d55..8b9e849d05 100644
@@ -23 +25 @@
-@@ -734,6 +734,7 @@ Julien Aube <julien_dpdk at jaube.fr>
+@@ -711,6 +711,7 @@ Julien Aube <julien_dpdk at jaube.fr>


More information about the stable mailing list