aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-10-23 20:33:29 +0200
committerDamjan Marion <dmarion@me.com>2018-10-23 19:35:39 +0000
commitf87eb9b3722f38112de6bc823527438e2a521bc0 (patch)
treeffd6e4f73f774a61e76bc2b668887272e9fa700e /src/vlib
parent81c0585ba98a6a2ca40a445ed9f81106ad6476df (diff)
vlib: alloc buffers on local numa, not on numa 1
Change-Id: Icb8172238f735fd0825e474e16a006f1435e175c Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vlib/buffer.c b/src/vlib/buffer.c
index 502e74fd291..2f15e6530da 100644
--- a/src/vlib/buffer.c
+++ b/src/vlib/buffer.c
@@ -982,7 +982,8 @@ vlib_buffer_main_init (struct vlib_main_t * vm)
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;