Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add config option to use dlmalloc instead of mheap
[vpp.git]
/
src
/
plugins
/
dpdk
/
buffer.c
diff --git
a/src/plugins/dpdk/buffer.c
b/src/plugins/dpdk/buffer.c
index
6afd20e
..
2ce3d87
100644
(file)
--- a/
src/plugins/dpdk/buffer.c
+++ b/
src/plugins/dpdk/buffer.c
@@
-611,8
+611,8
@@
buffer_state_validation_init (vlib_main_t * vm)
{
void *oldheap;
{
void *oldheap;
- vlib_buffer_state_heap =
mheap_alloc (0, 10 << 20);
-
+ vlib_buffer_state_heap =
+ mheap_alloc_with_lock (0, 10 << 20, 0 /* locked */ );
oldheap = clib_mem_set_heap (vlib_buffer_state_heap);
vlib_buffer_state_validation_hash = hash_create (0, sizeof (uword));
oldheap = clib_mem_set_heap (vlib_buffer_state_heap);
vlib_buffer_state_validation_hash = hash_create (0, sizeof (uword));