patch 'app/dma-perf: check buffer size' has been queued to stable release 24.11.4
Kevin Traynor
ktraynor at redhat.com
Fri Nov 21 12:20:03 CET 2025
Hi,
FYI, your patch has been queued to stable release 24.11.4
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/26/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/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/5694265ad26746ac10a050e299dcfbcbfb5936ca
Thanks.
Kevin
---
>From 5694265ad26746ac10a050e299dcfbcbfb5936ca Mon Sep 17 00:00:00 2001
From: Chengwen Feng <fengchengwen at huawei.com>
Date: Mon, 20 Oct 2025 12:11:02 +0800
Subject: [PATCH] app/dma-perf: check buffer size
[ upstream commit 12b050defa729b0edf416e25ddf16203bcb176e2 ]
When the buf-size is too large, the test will show:
Case process killed by signal 11
The root cause is that rte_pktmbuf_pool_create() will truncate the
buf-size to uint16 type.
This commit add a friendly error trace when encounter such case.
Fixes: 623dc9364dc6 ("app/dma-perf: introduce DMA performance test")
Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
---
app/test-dma-perf/benchmark.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/app/test-dma-perf/benchmark.c b/app/test-dma-perf/benchmark.c
index 6d617ea200..c08c5c8dc6 100644
--- a/app/test-dma-perf/benchmark.c
+++ b/app/test-dma-perf/benchmark.c
@@ -459,4 +459,9 @@ setup_memory_env(struct test_configure *cfg,
}
+ if (buf_size > UINT16_MAX) {
+ PRINT_ERR("Error: Invalid buf size: %u\n", cur_buf_size);
+ return -1;
+ }
+
src_pool = rte_pktmbuf_pool_create("Benchmark_DMA_SRC",
nr_buf,
--
2.51.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2025-11-21 11:05:10.216489487 +0000
+++ 0019-app-dma-perf-check-buffer-size.patch 2025-11-21 11:05:09.391068720 +0000
@@ -1 +1 @@
-From 12b050defa729b0edf416e25ddf16203bcb176e2 Mon Sep 17 00:00:00 2001
+From 5694265ad26746ac10a050e299dcfbcbfb5936ca Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 12b050defa729b0edf416e25ddf16203bcb176e2 ]
+
@@ -16 +17,0 @@
-Cc: stable at dpdk.org
@@ -24 +25 @@
-index 694ad25cbe..6643ccc95f 100644
+index 6d617ea200..c08c5c8dc6 100644
@@ -27 +28 @@
-@@ -526,4 +526,9 @@ setup_memory_env(struct test_configure *cfg, uint32_t nr_buf,
+@@ -459,4 +459,9 @@ setup_memory_env(struct test_configure *cfg,
More information about the stable
mailing list