vlib: alloc buffers on local numa, not on numa 1
Change-Id: Icb8172238f735fd0825e474e16a006f1435e175c
Signed-off-by: Damjan Marion <damarion@cisco.com>
diff --git a/src/vlib/buffer.c b/src/vlib/buffer.c
index 502e74f..2f15e65 100644
--- a/src/vlib/buffer.c
+++ b/src/vlib/buffer.c
@@ -982,7 +982,8 @@
clib_spinlock_init (&bm->buffer_known_hash_lockp);
if ((error = vlib_physmem_shared_map_create (vm, "buffers",
- vlib_buffer_physmem_sz, 1,
+ vlib_buffer_physmem_sz,
+ CLIB_PMALLOC_NUMA_LOCAL,
&physmem_map_index)))
return error;