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
mem: extract common dynamic memory allocation
[dpdk.git]
/
lib
/
librte_eal
/
freebsd
/
eal_memory.c
diff --git
a/lib/librte_eal/freebsd/eal_memory.c
b/lib/librte_eal/freebsd/eal_memory.c
index
2eb70c2
..
72a30f2
100644
(file)
--- a/
lib/librte_eal/freebsd/eal_memory.c
+++ b/
lib/librte_eal/freebsd/eal_memory.c
@@
-315,14
+315,6
@@
get_mem_amount(uint64_t page_sz, uint64_t max_mem)
return RTE_ALIGN(area_sz, page_sz);
}
return RTE_ALIGN(area_sz, page_sz);
}
-static int
-memseg_list_init(struct rte_memseg_list *msl, uint64_t page_sz,
- int n_segs, int socket_id, int type_msl_idx)
-{
- return eal_memseg_list_init(
- msl, page_sz, n_segs, socket_id, type_msl_idx, false);
-}
-
static int
memseg_list_alloc(struct rte_memseg_list *msl)
{
static int
memseg_list_alloc(struct rte_memseg_list *msl)
{
@@
-419,8
+411,8
@@
memseg_primary_init(void)
cur_max_mem);
n_segs = cur_mem / hugepage_sz;
cur_max_mem);
n_segs = cur_mem / hugepage_sz;
- if (memseg_list_init(msl, hugepage_sz, n_segs,
- 0, type_msl_idx))
+ if (
eal_
memseg_list_init(msl, hugepage_sz, n_segs,
+ 0, type_msl_idx
, false
))
return -1;
total_segs += msl->memseg_arr.len;
return -1;
total_segs += msl->memseg_arr.len;