diff options
author | Damjan Marion <damarion@cisco.com> | 2017-07-27 04:01:24 -0400 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2017-07-27 10:50:34 +0000 |
commit | 6b0f5892833254438adaaf786b7195c82e3fdd30 (patch) | |
tree | 358073f74b31a877f39e25d76d4ee96b447e531b /src/vlib/unix/physmem.c | |
parent | 2ee2d57c3ac63c8fdcdae53366e29b7dcdb2014d (diff) |
Thread safe internal buffer manager
Change-Id: I45845b952aa42a854e1c2c396b85f905de987020
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/unix/physmem.c')
-rw-r--r-- | src/vlib/unix/physmem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vlib/unix/physmem.c b/src/vlib/unix/physmem.c index 933cc63b7f4..27a5bacffb0 100644 --- a/src/vlib/unix/physmem.c +++ b/src/vlib/unix/physmem.c @@ -155,7 +155,8 @@ htlb_init (vlib_main_t * vm) pm->heap = mheap_alloc_with_flags (pm->mem, pm->mem_size, /* Don't want mheap mmap/munmap with IO memory. */ - MHEAP_FLAG_DISABLE_VM); + MHEAP_FLAG_DISABLE_VM | + MHEAP_FLAG_THREAD_SAFE); cur = pointer_to_uword (pm->mem); i = 0; |