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
net/mlx5: make tunnel hub list thread safe
[dpdk.git]
/
lib
/
librte_eal
/
windows
/
eal_memory.c
diff --git
a/lib/librte_eal/windows/eal_memory.c
b/lib/librte_eal/windows/eal_memory.c
index
73be1cf
..
7f8d3c2
100644
(file)
--- a/
lib/librte_eal/windows/eal_memory.c
+++ b/
lib/librte_eal/windows/eal_memory.c
@@
-656,13
+656,15
@@
eal_nohuge_init(void)
void *addr;
mcfg = rte_eal_get_configuration()->mem_config;
void *addr;
mcfg = rte_eal_get_configuration()->mem_config;
+ struct internal_config *internal_conf =
+ eal_get_internal_configuration();
/* nohuge mode is legacy mode */
/* nohuge mode is legacy mode */
- internal_conf
ig.
legacy_mem = 1;
+ internal_conf
->
legacy_mem = 1;
msl = &mcfg->memsegs[0];
msl = &mcfg->memsegs[0];
- mem_sz = internal_conf
ig.
memory;
+ mem_sz = internal_conf
->
memory;
page_sz = RTE_PGSIZE_4K;
n_segs = mem_sz / page_sz;
page_sz = RTE_PGSIZE_4K;
n_segs = mem_sz / page_sz;
@@
-698,7
+700,10
@@
eal_nohuge_init(void)
int
rte_eal_hugepage_init(void)
{
int
rte_eal_hugepage_init(void)
{
- return internal_config.no_hugetlbfs ?
+ const struct internal_config *internal_conf =
+ eal_get_internal_configuration();
+
+ return internal_conf->no_hugetlbfs ?
eal_nohuge_init() : eal_dynmem_hugepage_init();
}
eal_nohuge_init() : eal_dynmem_hugepage_init();
}