]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_common_memalloc.c
ethdev: add definitions for EEPROM standards
[dpdk.git] / lib / librte_eal / common / eal_common_memalloc.c
index 3005ef9806a83855a9e60f40c905294bf0feccd0..55189d0724014223b839caaff176ac2409c554f7 100644 (file)
@@ -9,7 +9,6 @@
 #include <rte_fbarray.h>
 #include <rte_memzone.h>
 #include <rte_memory.h>
-#include <rte_eal_memconfig.h>
 #include <rte_string_fns.h>
 #include <rte_rwlock.h>
 
@@ -77,7 +76,7 @@ eal_memalloc_is_contig(const struct rte_memseg_list *msl, void *start,
        const struct rte_memseg *ms;
 
        /* for IOVA_VA, it's always contiguous */
-       if (rte_eal_iova_mode() == RTE_IOVA_VA)
+       if (rte_eal_iova_mode() == RTE_IOVA_VA && !msl->external)
                return true;
 
        /* for legacy memory, it's always contiguous */
@@ -243,7 +242,7 @@ eal_memalloc_mem_event_notify(enum rte_mem_event event, const void *start,
        rte_rwlock_read_lock(&mem_event_rwlock);
 
        TAILQ_FOREACH(entry, &mem_event_callback_list, next) {
-               RTE_LOG(DEBUG, EAL, "Calling mem event callback '%s:%p'",
+               RTE_LOG(DEBUG, EAL, "Calling mem event callback '%s:%p'\n",
                        entry->name, entry->arg);
                entry->clb(event, start, len, entry->arg);
        }