git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eal/windows: add missing SPDX license tag
[dpdk.git]
/
lib
/
librte_eal
/
common
/
eal_common_memalloc.c
diff --git
a/lib/librte_eal/common/eal_common_memalloc.c
b/lib/librte_eal/common/eal_common_memalloc.c
index
1d41ea1
..
e872c65
100644
(file)
--- a/
lib/librte_eal/common/eal_common_memalloc.c
+++ b/
lib/librte_eal/common/eal_common_memalloc.c
@@
-9,7
+9,6
@@
#include <rte_fbarray.h>
#include <rte_memzone.h>
#include <rte_memory.h>
#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>
#include <rte_string_fns.h>
#include <rte_rwlock.h>
@@
-75,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;
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 */
/* 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 */
return true;
/* for legacy memory, it's always contiguous */
- if (internal_conf
ig.
legacy_mem)
+ if (internal_conf
->
legacy_mem)
return true;
end = RTE_PTR_ADD(start, len);
return true;
end = RTE_PTR_ADD(start, len);