]> git.droids-corp.org - dpdk.git/blobdiff - lib/mempool/rte_mempool.c
ipc: end multiprocess thread during cleanup
[dpdk.git] / lib / mempool / rte_mempool.c
index 2d915e591d814d1ccc3bb3f4ebcc1bc1cbe32e54..c5a699b1d692caaba00291a0358934e3c5f3d51f 100644 (file)
@@ -373,8 +373,8 @@ rte_mempool_populate_iova(struct rte_mempool *mp, char *vaddr,
        STAILQ_INSERT_TAIL(&mp->mem_list, memhdr, next);
        mp->nb_mem_chunks++;
 
-       /* At least some objects in the pool can now be used for IO. */
-       if (iova != RTE_BAD_IOVA)
+       /* Check if at least some objects in the pool are now usable for IO. */
+       if (!(mp->flags & RTE_MEMPOOL_F_NO_IOVA_CONTIG) && iova != RTE_BAD_IOVA)
                mp->flags &= ~RTE_MEMPOOL_F_NON_IO;
 
        /* Report the mempool as ready only when fully populated. */