patch 'app/dma-perf: fix reversed CPU copy' has been queued to stable release 23.11.7
Shani Peretz
shperetz at nvidia.com
Wed Apr 15 11:59:55 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/19/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/eb5d4632de46b4b0362f386d660dcb47ef2e9143
Thanks.
Shani
---
>From eb5d4632de46b4b0362f386d660dcb47ef2e9143 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 37c4d8d6bc..78dc62bbec 100644
--- a/.mailmap
+++ b/.mailmap
@@ -826,7 +826,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 084c953b02..7e9bb7b504 100644
--- a/app/test-dma-perf/benchmark.c
+++ b/app/test-dma-perf/benchmark.c
@@ -313,10 +313,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.43.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-04-14 14:44:33.958227605 +0300
+++ 0054-app-dma-perf-fix-reversed-CPU-copy.patch 2026-04-14 14:44:28.658449000 +0300
@@ -1 +1 @@
-From e76312d0792e3bb8958cd4c16ed014d2890ae55d Mon Sep 17 00:00:00 2001
+From eb5d4632de46b4b0362f386d660dcb47ef2e9143 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 37c4d8d6bc..78dc62bbec 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>
+@@ -826,7 +826,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 084c953b02..7e9bb7b504 100644
@@ -35 +36 @@
-@@ -520,10 +520,10 @@ do_cpu_mem_copy(void *p)
+@@ -313,10 +313,10 @@ do_cpu_mem_copy(void *p)
More information about the stable
mailing list