Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
40b655c
)
plugins/dpdk: align memory to avoid potential segfault and false sharing
85/8785/5
author
Georgina Sheehan
<georgina.sheehan@intel.com>
Thu, 12 Oct 2017 11:13:59 +0000
(12:13 +0100)
committer
Damjan Marion
<dmarion.lists@gmail.com>
Sat, 14 Oct 2017 09:10:29 +0000
(09:10 +0000)
Made Update to src/plugins/dpdk/buffer.c
Change-Id: I87bb8f38974a7be274c1b1d205f5513e7d068e48
Signed-off-by: Georgina <georgina.sheehan@intel.com>
src/plugins/dpdk/buffer.c
patch
|
blob
|
history
diff --git
a/src/plugins/dpdk/buffer.c
b/src/plugins/dpdk/buffer.c
index
484492c
..
a44428a
100644
(file)
--- 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;