patch 'app/dma-perf: fix reversed CPU copy' has been queued to stable release 24.11.5
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Thu Mar 19 23:02:53 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.11.5
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/21/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/61d35caed2c046e11d59f28ff0d939c7cf927f98
Thanks.
Luca Boccassi
---
>From 61d35caed2c046e11d59f28ff0d939c7cf927f98 Mon Sep 17 00:00:00 2001
From: Liangxing Wang <wangliangxing at hygon.cn>
Date: Tue, 3 Mar 2026 09:18:04 +0000
Subject: [PATCH] app/dma-perf: fix reversed CPU copy
[ upstream commit e76312d0792e3bb8958cd4c16ed014d2890ae55d ]
In do_cpu_mem_copy(), src and dst were reversed.
Fixes: 2f2f7af66791 ("app/dma-perf: fix crash with IOVA as physical address")
Signed-off-by: Liangxing Wang <wangliangxing at hygon.cn>
Acked-by: Chengwen Feng <fengchengwen at huawei.com>
---
.mailmap | 2 +-
app/test-dma-perf/benchmark.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.mailmap b/.mailmap
index 7f5b2d18b3..f3057e6d7e 100644
--- a/.mailmap
+++ b/.mailmap
@@ -869,7 +869,7 @@ Lewis Donzis <lew at perftech.com>
Leyi Rong <leyi.rong at intel.com>
Liang Ma <liangma at bytedance.com> <liangma at liangbit.com> <liang.j.ma at intel.com>
Liang-Min Larry Wang <liang-min.wang at intel.com>
-Liangxing Wang <liangxing.wang at arm.com>
+Liangxing Wang <wangliangxing at hygon.cn> <liangxing.wang at arm.com>
Liang Xu <liang.xu at cinfotech.cn>
Liang Zhang <zhangliang at bigo.sg>
Li Feng <fengli at smartx.com>
diff --git a/app/test-dma-perf/benchmark.c b/app/test-dma-perf/benchmark.c
index 537cc7618c..fd2ca90fec 100644
--- a/app/test-dma-perf/benchmark.c
+++ b/app/test-dma-perf/benchmark.c
@@ -450,10 +450,10 @@ do_cpu_mem_copy(void *p)
while (1) {
for (i = 0; i < nr_buf; i++) {
- const void *src = rte_pktmbuf_mtod(dsts[i], void *);
- void *dst = rte_pktmbuf_mtod(srcs[i], void *);
+ const void *src = rte_pktmbuf_mtod(srcs[i], void *);
+ void *dst = rte_pktmbuf_mtod(dsts[i], void *);
- /* copy buffer form src to dst */
+ /* copy buffer from src to dst */
rte_memcpy(dst, src, (size_t)buf_size);
worker_info->total_cpl++;
}
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-03-19 22:00:49.960391262 +0000
+++ 0061-app-dma-perf-fix-reversed-CPU-copy.patch 2026-03-19 22:00:47.822359366 +0000
@@ -1 +1 @@
-From e76312d0792e3bb8958cd4c16ed014d2890ae55d Mon Sep 17 00:00:00 2001
+From 61d35caed2c046e11d59f28ff0d939c7cf927f98 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit e76312d0792e3bb8958cd4c16ed014d2890ae55d ]
+
@@ -9 +10,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index e23cd100eb..beccc84425 100644
+index 7f5b2d18b3..f3057e6d7e 100644
@@ -22,3 +23,3 @@
-@@ -912,7 +912,7 @@ Liang Ma <liangma at bytedance.com> <liang.j.ma at intel.com>
- Liang Xu <liang.xu at cinfotech.cn>
- Liang Zhang <zhangliang at bigo.sg>
+@@ -869,7 +869,7 @@ Lewis Donzis <lew at perftech.com>
+ Leyi Rong <leyi.rong at intel.com>
+ Liang Ma <liangma at bytedance.com> <liangma at liangbit.com> <liang.j.ma at intel.com>
@@ -28,3 +29,3 @@
- Lihong Ma <lihongx.ma at intel.com>
- Lijian Zhang <lijian.zhang at arm.com>
- Lijie Shan <shan.lijie at zte.com.cn>
+ Liang Xu <liang.xu at cinfotech.cn>
+ Liang Zhang <zhangliang at bigo.sg>
+ Li Feng <fengli at smartx.com>
@@ -32 +33 @@
-index b6125d86f9..c0ffc859bd 100644
+index 537cc7618c..fd2ca90fec 100644
@@ -35 +36 @@
-@@ -520,10 +520,10 @@ do_cpu_mem_copy(void *p)
+@@ -450,10 +450,10 @@ do_cpu_mem_copy(void *p)
More information about the stable
mailing list