vlib: add buffer and thread callbacks

Change-Id: I8e2e8f94a884ab2f9909d0c83ba00edd38cdab77
Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:
Damjan Marion
2017-01-04 13:19:27 +01:00
committed by Dave Barach
parent eea28d78a3
commit 878c609889
20 changed files with 1304 additions and 832 deletions

View File

@@ -643,7 +643,7 @@ flowperpkt_init (vlib_main_t * vm)
vec_free (name);
/* Decide how many worker threads we have */
num_threads = 1 /* main thread */ + tm->n_eal_threads;
num_threads = 1 /* main thread */ + tm->n_threads;
/* Allocate per worker thread vectors */
vec_validate (fm->ipv4_buffers_per_worker, num_threads - 1);