patch 'test/timer: fix hang on secondary process failure' has been queued to stable release 23.11.7

Shani Peretz shperetz at nvidia.com
Tue Mar 31 08:23:30 CEST 2026


Hi,

FYI, your patch has been queued to stable release 23.11.7

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 04/05/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/shanipr/dpdk-stable

This queued commit can be viewed at:
https://github.com/shanipr/dpdk-stable/commit/d5b1881ef4048a32edd46ba1476d11f916a4a8bb

Thanks.

Shani

---
>From d5b1881ef4048a32edd46ba1476d11f916a4a8bb Mon Sep 17 00:00:00 2001
From: Bruce Richardson <bruce.richardson at intel.com>
Date: Thu, 11 Dec 2025 17:17:02 +0000
Subject: [PATCH] test/timer: fix hang on secondary process failure

[ upstream commit 5f6945bcfb0de8292da9dd8cd56556e2306d02cb ]

When the secondary process run from timer_secontary_autotest fails, the
timer loop is never stopped so the whole process hangs until timeout.
Fix this by setting the stop flag before checking for success or failure
of the secondary process.

Fixes: 50247fe03fe0 ("test/timer: exercise new APIs in secondary process")

Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
 app/test/test_timer_secondary.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/app/test/test_timer_secondary.c b/app/test/test_timer_secondary.c
index 4e220559b4..1e77137ae3 100644
--- a/app/test/test_timer_secondary.c
+++ b/app/test/test_timer_secondary.c
@@ -160,11 +160,12 @@ test_timer_secondary(void)
 		TEST_ASSERT_SUCCESS(ret, "Failed to launch timer manage loop");
 
 		ret = timer_secondary_spawn_wait(*sec_lcorep);
-		TEST_ASSERT_SUCCESS(ret, "Secondary process execution failed");
+		/* must set exit flag even on error case, so check ret later */
 
 		rte_delay_ms(2000);
-
 		test_info->exit_flag = 1;
+
+		TEST_ASSERT_SUCCESS(ret, "Secondary process execution failed");
 		rte_eal_wait_lcore(*mgr_lcorep);
 
 #ifdef RTE_LIBRTE_TIMER_DEBUG
-- 
2.43.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-03-31 00:32:30.639711543 +0300
+++ 0011-test-timer-fix-hang-on-secondary-process-failure.patch	2026-03-31 00:32:28.456244000 +0300
@@ -1 +1 @@
-From 5f6945bcfb0de8292da9dd8cd56556e2306d02cb Mon Sep 17 00:00:00 2001
+From d5b1881ef4048a32edd46ba1476d11f916a4a8bb Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 5f6945bcfb0de8292da9dd8cd56556e2306d02cb ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
-index ee2675a821..8580880a56 100644
+index 4e220559b4..1e77137ae3 100644
@@ -30 +31 @@
- 		rte_delay_ms(500);
+ 		rte_delay_ms(2000);


More information about the stable mailing list