]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_mempool/rte_mempool.c
mem: do not advertise physical address when no hugepages
[dpdk.git] / lib / librte_mempool / rte_mempool.c
index f65310f60a84d9c455832ddfda1b2bf82ba3e812..6fc3c9c7cb3577603904f630c7eeb99edb3a8956 100644 (file)
@@ -476,7 +476,7 @@ rte_mempool_populate_virt(struct rte_mempool *mp, char *addr,
                /* required for xen_dom0 to get the machine address */
                paddr = rte_mem_phy2mch(-1, paddr);
 
-               if (paddr == RTE_BAD_PHYS_ADDR) {
+               if (paddr == RTE_BAD_PHYS_ADDR && rte_eal_has_hugepages()) {
                        ret = -EINVAL;
                        goto fail;
                }