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

Kevin Traynor ktraynor at redhat.com
Thu Jul 30 11:16:47 CEST 2026


Hi,

FYI, your patch has been queued to stable release 25.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 08/04/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/f31c1b4a9512da01d5749b106b6e9e1ac74e5a6c

Thanks.

Kevin

---
>From f31c1b4a9512da01d5749b106b6e9e1ac74e5a6c 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 13bf07a764..04ddc4eec7 100644
--- a/app/test-dma-perf/main.c
+++ b/app/test-dma-perf/main.c
@@ -111,4 +111,5 @@ run_test(uint32_t case_id, struct test_configure *case_cfg)
 {
 	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;
@@ -123,4 +124,12 @@ run_test(uint32_t case_id, struct test_configure *case_cfg)
 	}
 
+	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);
 
-- 
2.55.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-07-30 10:16:03.425933784 +0100
+++ 0068-app-dma-perf-fix-hang-with-worker-on-main-lcore.patch	2026-07-30 10:16:01.499904715 +0100
@@ -1 +1 @@
-From 79147f0e226cb773db421eee7a0ca721989162ba Mon Sep 17 00:00:00 2001
+From f31c1b4a9512da01d5749b106b6e9e1ac74e5a6c Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 79147f0e226cb773db421eee7a0ca721989162ba ]
+
@@ -14 +15,0 @@
-CC: stable at dpdk.org



More information about the stable mailing list