[EXT] Re: [PATCH v10 3/4] app/dma-perf: validate copied memory
Gowrishankar Muthukrishnan
gmuthukrishn at marvell.com
Wed Feb 28 10:09:23 CET 2024
Hi Fengchengwen,
> > + for (i = 0; i < (nr_buf / nb_workers) * nb_workers; i++) {
> > + if (memcmp(rte_pktmbuf_mtod(srcs[i], void *),
> > + rte_pktmbuf_mtod(dsts[i], void *),
> > + cfg->buf_size.cur) != 0) {
> > + printf("Copy validation fails for buffer number %d\n",
> i);
>
> For non-mem2mem DMA, like mem2dev or dev2mem, the device host
> address may not direct accessable by CPU (if could may need mmap).
>
This has been checked in 4/4 patch as (cfg->transfer_dir == RTE_DMA_DIR_MEM_TO_MEM). Would you still need it in this patch only ?.
Thanks,
Gowrishankar
> So pls restrict it only mem2mem, or drop this commit.
>
> Thanks
More information about the dev
mailing list