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: allow memseg lists to be marked as external
[dpdk.git]
/
lib
/
librte_eal
/
common
/
eal_common_memory.c
diff --git
a/lib/librte_eal/common/eal_common_memory.c
b/lib/librte_eal/common/eal_common_memory.c
index
30d0182
..
a2461ed
100644
(file)
--- a/
lib/librte_eal/common/eal_common_memory.c
+++ b/
lib/librte_eal/common/eal_common_memory.c
@@
-272,6
+272,9
@@
physmem_size(const struct rte_memseg_list *msl, void *arg)
{
uint64_t *total_len = arg;
+ if (msl->external)
+ return 0;
+
*total_len += msl->memseg_arr.count * msl->page_sz;
return 0;