]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/malloc_heap.c
mem: add thread unsafe version for DMA mask check
[dpdk.git] / lib / librte_eal / common / malloc_heap.c
index c2c112aa628d92aebb28764d53480f960e0d75cf..c6a6d4f6bdce1aafb2fabea6c66b6661fe3ad918 100644 (file)
@@ -334,7 +334,7 @@ alloc_pages_on_heap(struct malloc_heap *heap, uint64_t pg_sz, size_t elt_size,
         * executed. For 2) implies the new memory can not be added.
         */
        if (mcfg->dma_maskbits &&
-           rte_mem_check_dma_mask(mcfg->dma_maskbits)) {
+           rte_mem_check_dma_mask_thread_unsafe(mcfg->dma_maskbits)) {
                /*
                 * Currently this can only happen if IOMMU is enabled
                 * and the address width supported by the IOMMU hw is