summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-03-17 10:28:23 +0100
committerGerrit Code Review <gerrit@fd.io>2016-03-17 12:09:37 +0000
commit89b3398a81ab0bcfc891ad78b24dbc8721bbc514 (patch)
tree04932df87c64107c39c0f68189bb6fbca857983c
parentaaf2acddb333d40b376ade61c2a92a989b63ff93 (diff)
Reincarnate call to unix_physmem_init() for non-dpdk use
Change-Id: Iaa3da32060e78bbc505ee84a2a6393f899aa110e Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--vpp/vnet/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vpp/vnet/main.c b/vpp/vnet/main.c
index 9d89ce70158..f6d21a675bc 100644
--- a/vpp/vnet/main.c
+++ b/vpp/vnet/main.c
@@ -196,6 +196,9 @@ defaulted:
if (clib_mem_init (0, main_heap_size)) {
vm->init_functions_called = hash_create (0, /* value bytes */ 0);
vpe_main_init(vm);
+#if ! DPDK
+ unix_physmem_init(vm, 0 /* fail_if_physical_memory_not_present */);
+#endif
vlib_set_get_handoff_structure_cb (&vnet_get_handoff_structure);
return vlib_unix_main (argc, argv);
} else {