summaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-06-02 20:42:07 +0200
committerDave Barach <openvpp@barachs.net>2018-06-03 12:01:12 +0000
commit8855386411af888e47c60645daa1fe6081fa56e1 (patch)
treed8100b16a87f6618df8c3d4c172c8e029f9f8ce6 /src/vlib
parente8d7ff5f876c3950caf1bacf603d79b9ada8aef2 (diff)
dpdk: improve buffer alloc perfomance
This is ~50% improvement in buffer alloc performance. For a 256 buffer allocation, it was ~10 clocks/buffer, now is < 5 clocks. Change-Id: I97590e240a79a42bcab5eb26587fc2d11e6eb163 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/main.h2
-rw-r--r--src/vlib/threads.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/src/vlib/main.h b/src/vlib/main.h
index 57b1efb7513..16e4120067d 100644
--- a/src/vlib/main.h
+++ b/src/vlib/main.h
@@ -175,8 +175,6 @@ typedef struct vlib_main_t
/* to compare with node runtime */
u32 thread_index;
- void **mbuf_alloc_list;
-
/* List of init functions to call, setup by constructors */
_vlib_init_function_list_elt_t *init_function_registrations;
_vlib_init_function_list_elt_t *worker_init_function_registrations;
diff --git a/src/vlib/threads.c b/src/vlib/threads.c
index edf5a0e0711..bbe94c7f272 100644
--- a/src/vlib/threads.c
+++ b/src/vlib/threads.c
@@ -827,7 +827,6 @@ start_workers (vlib_main_t * vm)
vm_clone->thread_index = worker_thread_index;
vm_clone->heap_base = w->thread_mheap;
- vm_clone->mbuf_alloc_list = 0;
vm_clone->init_functions_called =
hash_create (0, /* value bytes */ 0);
vm_clone->pending_rpc_requests = 0;