]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_common_memalloc.c
eal/windows: add missing SPDX license tag
[dpdk.git] / lib / librte_eal / common / eal_common_memalloc.c
index 55189d0724014223b839caaff176ac2409c554f7..e872c6533b3d269fd775ec54c489cc4bdb8cc6f3 100644 (file)
@@ -74,13 +74,15 @@ eal_memalloc_is_contig(const struct rte_memseg_list *msl, void *start,
        void *end, *aligned_start, *aligned_end;
        size_t pgsz = (size_t)msl->page_sz;
        const struct rte_memseg *ms;
+       const struct internal_config *internal_conf =
+               eal_get_internal_configuration();
 
        /* for IOVA_VA, it's always contiguous */
        if (rte_eal_iova_mode() == RTE_IOVA_VA && !msl->external)
                return true;
 
        /* for legacy memory, it's always contiguous */
-       if (internal_config.legacy_mem)
+       if (internal_conf->legacy_mem)
                return true;
 
        end = RTE_PTR_ADD(start, len);