> do_cpu_mem_copy uses DPDK API rte_mbuf_data_iova to return the start
> of the virtual address for both src and dst.
> But in case of iova mode set as PA, this results in seg-fault.
> This is because rte_memcpy uses VA address and not PA.
> 
> This fix invokes `rte_pktmbuf_mtod` for both src and dst.
> 
> Bugzilla ID: 1269
> Fixes: 623dc9364dc6 ("app/dma-perf: introduce DMA performance test")
> Cc: [email protected]
> 
> Cc: [email protected]
> 
> Signed-off-by: Vipin Varghese <[email protected]>
> Suggested-by: Anoob Joseph <[email protected]>

Acked-by: Anoob Joseph <[email protected]>

Reply via email to