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

* Re: [PATCH] app/test-dma-perf: fix reversed src and dst for memcpy
  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
  0 siblings, 1 reply; 3+ messages in thread
From: fengchengwen @ 2026-03-05  0:41 UTC (permalink / raw)
  To: Liangxing Wang, honest.jiang; +Cc: dev, vipin.varghese, stable

Acked-by: Chengwen Feng <fengchengwen@huawei.com>

On 3/3/2026 5:18 PM, Liangxing Wang wrote:
> 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);


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

* Re: [PATCH] app/test-dma-perf: fix reversed src and dst for memcpy
  2026-03-05  0:41 ` fengchengwen
@ 2026-03-17 14:48   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2026-03-17 14:48 UTC (permalink / raw)
  To: Liangxing Wang; +Cc: honest.jiang, dev, vipin.varghese, stable, fengchengwen

05/03/2026 01:41, fengchengwen:
> Acked-by: Chengwen Feng <fengchengwen@huawei.com>
> 
> On 3/3/2026 5:18 PM, Liangxing Wang wrote:
> > Fixes: 2f2f7af66791 ("app/dma-perf: fix crash with IOVA as physical address")
> > Cc: stable@dpdk.org
> > 
> > Signed-off-by: Liangxing Wang <wangliangxing@hygon.cn>

Applied, thanks.




^ permalink raw reply	[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