diff options
author | Damjan Marion <damarion@cisco.com> | 2017-03-09 20:38:15 +0100 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2017-03-10 19:35:49 +0000 |
commit | 374e2c5fc30a5bfabfd2eb6c2d3ca5797402af16 (patch) | |
tree | f7ad7280f4f917bec47d5708b3a0a84cffcc9ace /src/vlib | |
parent | e9d52d54361296af520e1ece0c25307a2d86c018 (diff) |
Retire vpp_lite
vpp_lite platform is not needed anymore as same efect can be
achieved with following startup.conf config:
plugins {
plugin dpdk_plugin.so { disable }
}
Change-Id: I690ea8ceb1c6e1fe32e01e7da54e9958019a93bf
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib')
-rw-r--r-- | src/vlib/buffer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vlib/buffer.c b/src/vlib/buffer.c index 6ba82584..a517a597 100644 --- a/src/vlib/buffer.c +++ b/src/vlib/buffer.c @@ -44,6 +44,7 @@ */ #include <vlib/vlib.h> +#include <vlib/unix/unix.h> uword vlib_buffer_length_in_chain_slow_path (vlib_main_t * vm, @@ -583,6 +584,11 @@ alloc_from_free_list (vlib_main_t * vm, dst = alloc_buffers; + /* wait with buffer memory allocation as long as possible + in case external buffer manager takes over */ + if (PREDICT_FALSE (vm->os_physmem_alloc_aligned == 0)) + unix_physmem_init (vm, 0 /* fail_if_physical_memory_not_present */ ); + n_filled = fill_free_list (vm, free_list, n_alloc_buffers); if (n_filled == 0) return 0; |