aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/buffer.c
diff options
context:
space:
mode:
authorGeorgina Sheehan <georgina.sheehan@intel.com>2017-10-12 12:13:59 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2017-10-14 09:10:29 +0000
commit781b99ddc9565a6c8bbe078ecb3258d91a2bbc06 (patch)
tree52f2300ac448a42158d2f8b66956ea628dc2d5ff /src/plugins/dpdk/buffer.c
parent40b655c370830582d06c916efa4078d006937978 (diff)
plugins/dpdk: align memory to avoid potential segfault and false sharing
Made Update to src/plugins/dpdk/buffer.c Change-Id: I87bb8f38974a7be274c1b1d205f5513e7d068e48 Signed-off-by: Georgina <georgina.sheehan@intel.com>
Diffstat (limited to 'src/plugins/dpdk/buffer.c')
-rw-r--r--src/plugins/dpdk/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/dpdk/buffer.c b/src/plugins/dpdk/buffer.c
index 484492cb4d4..a44428a4592 100644
--- a/src/plugins/dpdk/buffer.c
+++ b/src/plugins/dpdk/buffer.c
@@ -188,7 +188,7 @@ fill_free_list (vlib_main_t * vm,
/* Always allocate new buffers in reasonably large sized chunks. */
n = clib_max (n, fl->min_n_buffers_each_physmem_alloc);
- vec_validate (vm->mbuf_alloc_list, n - 1);
+ vec_validate_aligned (vm->mbuf_alloc_list, n - 1, CLIB_CACHE_LINE_BYTES);
if (rte_mempool_get_bulk (rmp, vm->mbuf_alloc_list, n) < 0)
return 0;