]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/thunderx/nicvf_ethdev.h
mempool: rename addresses from physical to IOVA
[dpdk.git] / drivers / net / thunderx / nicvf_ethdev.h
index 3734430f503d49f7faf5fba31b44bc202cd232a4..e92c3242a9e5838d5647fd49fb555bae070e9ab0 100644 (file)
@@ -78,7 +78,7 @@ nicvf_mempool_phy_offset(struct rte_mempool *mp)
 
        hdr = STAILQ_FIRST(&mp->mem_list);
        assert(hdr != NULL);
-       return (uint64_t)((uintptr_t)hdr->addr - hdr->phys_addr);
+       return (uint64_t)((uintptr_t)hdr->addr - hdr->iova);
 }
 
 static inline uint16_t