patch 'examples/ipsec-secgw: fix number of queue pairs' has been queued to stable release 22.11.9

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Jul 14 17:11:16 CEST 2025


Hi,

FYI, your patch has been queued to stable release 22.11.9

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/16/25. 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/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/2cbf69e493da0063b82c33e5c7967a5144c2c5bb

Thanks.

Luca Boccassi

---
>From 2cbf69e493da0063b82c33e5c7967a5144c2c5bb Mon Sep 17 00:00:00 2001
From: Volodymyr Fialko <vfialko at marvell.com>
Date: Wed, 9 Jul 2025 10:23:25 +0200
Subject: [PATCH] examples/ipsec-secgw: fix number of queue pairs

[ upstream commit 7e6d6106a4ef052d6a2a6bd6e83c5b16a36c65c9 ]

Fix a mismatch between the signature of the cryptodevs_init() function
and the arguments passed to it during the call. This caused incorrect
initialization of queue pairs in ipsec-secgw example.

Fixes: 253265f8fb97 ("examples/ipsec-secgw: reduce queues for event lookaside")

Signed-off-by: Volodymyr Fialko <vfialko at marvell.com>
---
 examples/ipsec-secgw/ipsec-secgw.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c
index 849efbe755..f916e2a3e6 100644
--- a/examples/ipsec-secgw/ipsec-secgw.c
+++ b/examples/ipsec-secgw/ipsec-secgw.c
@@ -2961,16 +2961,7 @@ main(int32_t argc, char **argv)
 
 	sess_sz = max_session_size();
 
-	/*
-	 * In event mode request minimum number of crypto queues
-	 * to be reserved equal to number of ports.
-	 */
-	if (eh_conf->mode == EH_PKT_TRANSFER_MODE_EVENT)
-		nb_crypto_qp = rte_eth_dev_count_avail();
-	else
-		nb_crypto_qp = 0;
-
-	nb_crypto_qp = cryptodevs_init(nb_crypto_qp);
+	nb_crypto_qp = cryptodevs_init(eh_conf->mode);
 
 	if (nb_bufs_in_pool == 0) {
 		RTE_ETH_FOREACH_DEV(portid) {
-- 
2.47.2

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2025-07-14 16:09:41.475632244 +0100
+++ 0021-examples-ipsec-secgw-fix-number-of-queue-pairs.patch	2025-07-14 16:09:40.724449252 +0100
@@ -1 +1 @@
-From 7e6d6106a4ef052d6a2a6bd6e83c5b16a36c65c9 Mon Sep 17 00:00:00 2001
+From 2cbf69e493da0063b82c33e5c7967a5144c2c5bb Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 7e6d6106a4ef052d6a2a6bd6e83c5b16a36c65c9 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index 063cc8768e..fe489f9a56 100644
+index 849efbe755..f916e2a3e6 100644
@@ -22 +23 @@
-@@ -2994,16 +2994,7 @@ main(int32_t argc, char **argv)
+@@ -2961,16 +2961,7 @@ main(int32_t argc, char **argv)


More information about the stable mailing list