patch 'app/dma-perf: fix hang with worker on main lcore' has been queued to stable release 24.11.7

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Jul 13 19:18:05 CEST 2026


Hi,

FYI, your patch has been queued to stable release 24.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 07/15/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/bluca/dpdk-stable

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

Thanks.

Luca Boccassi

---
>From 756bc07a30c5958db2c3fdf6172fdb3f9d280e5f Mon Sep 17 00:00:00 2001
From: Rupesh Chiluka <rchiluka at marvell.com>
Date: Wed, 24 Jun 2026 11:12:54 +0530
Subject: [PATCH] app/dma-perf: fix hang with worker on main lcore

[ upstream commit 79147f0e226cb773db421eee7a0ca721989162ba ]

When a configured worker lcore is same as EAL main lcore, the main
thread calls `rte_eal_remote_launch()` on itself and then waits for
`worker_info.ready_flag`. The worker function cannot run on the main
lcore while the main thread is blocked in that loop, and the test hangs.

Reject such cases early in the `run_test()`.

Fixes: 623dc9364dc6 ("app/dma-perf: introduce DMA performance test")

Signed-off-by: Rupesh Chiluka <rchiluka at marvell.com>
Acked-by: Chengwen Feng <fengchengwen at huawei.com>
---
 app/test-dma-perf/main.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/app/test-dma-perf/main.c b/app/test-dma-perf/main.c
index 3446a661c6..8b73e320d1 100644
--- a/app/test-dma-perf/main.c
+++ b/app/test-dma-perf/main.c
@@ -124,6 +124,7 @@ run_test(uint32_t case_id, struct test_configure *case_cfg)
 {
 	uint32_t i;
 	uint32_t nb_lcores = rte_lcore_count();
+	uint32_t main_lcore = rte_get_main_lcore();
 	struct test_configure_entry *mem_size = &case_cfg->mem_size;
 	struct test_configure_entry *buf_size = &case_cfg->buf_size;
 	struct test_configure_entry *ring_size = &case_cfg->ring_size;
@@ -139,6 +140,14 @@ run_test(uint32_t case_id, struct test_configure *case_cfg)
 		return;
 	}
 
+	for (uint32_t i = 0; i < case_cfg->num_worker; i++) {
+		if (case_cfg->dma_config[i].lcore_dma_map.lcore == main_lcore) {
+			printf("Case %u: worker %u cannot run on the EAL main lcore (%u).\n",
+			       case_id, i, main_lcore);
+			return;
+		}
+	}
+
 	printf("Number of used lcores: %u.\n", nb_lcores);
 
 	if (mem_size->incr != 0)
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-07-13 18:17:06.505055053 +0100
+++ 0025-app-dma-perf-fix-hang-with-worker-on-main-lcore.patch	2026-07-13 18:17:05.602283346 +0100
@@ -1 +1 @@
-From 79147f0e226cb773db421eee7a0ca721989162ba Mon Sep 17 00:00:00 2001
+From 756bc07a30c5958db2c3fdf6172fdb3f9d280e5f Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 79147f0e226cb773db421eee7a0ca721989162ba ]
+
@@ -14 +15,0 @@
-CC: stable at dpdk.org
@@ -23 +24 @@
-index 13bf07a764..04ddc4eec7 100644
+index 3446a661c6..8b73e320d1 100644
@@ -26,2 +27 @@
-@@ -110,6 +110,7 @@ static void
- run_test(uint32_t case_id, struct test_configure *case_cfg)
+@@ -124,6 +124,7 @@ run_test(uint32_t case_id, struct test_configure *case_cfg)
@@ -28,0 +29 @@
+ 	uint32_t i;
@@ -34 +35 @@
-@@ -122,6 +123,14 @@ run_test(uint32_t case_id, struct test_configure *case_cfg)
+@@ -139,6 +140,14 @@ run_test(uint32_t case_id, struct test_configure *case_cfg)


More information about the stable mailing list