public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
* [PATCH] app/test-dma-perf: fix reversed src and dst for memcpy
@ 2026-03-03  9:18 Liangxing Wang
  2026-03-05  0:41 ` fengchengwen
  0 siblings, 1 reply; 3+ messages in thread
From: Liangxing Wang @ 2026-03-03  9:18 UTC (permalink / raw)
  To: honest.jiang, fengchengwen; +Cc: dev, vipin.varghese, Liangxing Wang, stable

Fixes: 2f2f7af66791 ("app/dma-perf: fix crash with IOVA as physical address")
Cc: stable@dpdk.org

Signed-off-by: Liangxing Wang <wangliangxing@hygon.cn>
---
 app/test-dma-perf/benchmark.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/test-dma-perf/benchmark.c b/app/test-dma-perf/benchmark.c
index b6125d86f9..5f6c022ad7 100644
--- a/app/test-dma-perf/benchmark.c
+++ b/app/test-dma-perf/benchmark.c
@@ -520,8 +520,8 @@ 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 */
 			rte_memcpy(dst, src, (size_t)buf_size);
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-17 14:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-03  9:18 [PATCH] app/test-dma-perf: fix reversed src and dst for memcpy Liangxing Wang
2026-03-05  0:41 ` fengchengwen
2026-03-17 14:48   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox