On Thu, Jul 7, 2022, 11:48 Antonio Di Bacco <a.dibacco.ks@gmail.com> wrote:
And then I need to add (memzone->iova -  memseg->iova) to the address
returned by mmap.
This bit sounds suspicious. 
mmap() always returns a virtual address. 
IOVA is VA or PA depending on DPDK mode.