patch 'test/stack: scale test based on core count' has been queued to stable release 25.11.1
Kevin Traynor
ktraynor at redhat.com
Thu Mar 19 11:03:13 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.1
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/23/26. 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/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/612f106fb1fb8290ff1004d75b2be605c0ae840a
Thanks.
Kevin
---
>From 612f106fb1fb8290ff1004d75b2be605c0ae840a Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Thu, 5 Mar 2026 09:50:58 -0800
Subject: [PATCH] test/stack: scale test based on core count
[ upstream commit 837afbfc49c08620b9be08d7cedbada5da14027d ]
This test uses loops to synchronize but has problems on systems
with high number of cores. Scale iterations to the number of
cores.
Fixes: 5e2e61b99e91 ("test/stack: check stack API")
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
app/test/test_stack.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/app/test/test_stack.c b/app/test/test_stack.c
index 9150cc9fed..067d1bcdd0 100644
--- a/app/test/test_stack.c
+++ b/app/test/test_stack.c
@@ -269,8 +269,10 @@ test_free_null(void)
}
-#define NUM_ITERS_PER_THREAD 100000
+#define NUM_ITERS_BASE 100000u
+#define NUM_ITERS_MIN 1000u
struct test_args {
struct rte_stack *s;
+ unsigned int num_iters;
};
@@ -281,7 +283,7 @@ stack_thread_push_pop(__rte_unused void *args)
{
void *obj_table[MAX_BULK];
- int i;
+ unsigned int i;
- for (i = 0; i < NUM_ITERS_PER_THREAD; i++) {
+ for (i = 0; i < thread_test_args.num_iters; i++) {
unsigned int num;
@@ -309,4 +311,5 @@ test_stack_multithreaded(uint32_t flags)
unsigned int lcore_id;
struct rte_stack *s;
+ unsigned int iterations;
int result = 0;
@@ -315,4 +318,5 @@ test_stack_multithreaded(uint32_t flags)
return TEST_SKIPPED;
}
+ iterations = test_scale_iterations(NUM_ITERS_BASE, NUM_ITERS_MIN);
printf("[%s():%u] Running with %u lcores\n",
@@ -326,4 +330,5 @@ test_stack_multithreaded(uint32_t flags)
}
+ thread_test_args.num_iters = iterations;
thread_test_args.s = s;
--
2.53.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-03-19 10:01:09.236360224 +0000
+++ 0075-test-stack-scale-test-based-on-core-count.patch 2026-03-19 10:01:07.130702912 +0000
@@ -1 +1 @@
-From 837afbfc49c08620b9be08d7cedbada5da14027d Mon Sep 17 00:00:00 2001
+From 612f106fb1fb8290ff1004d75b2be605c0ae840a Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 837afbfc49c08620b9be08d7cedbada5da14027d ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index abc3114729..5517982774 100644
+index 9150cc9fed..067d1bcdd0 100644
More information about the stable
mailing list