vlib: add buffer and thread callbacks
Change-Id: I8e2e8f94a884ab2f9909d0c83ba00edd38cdab77 Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:
committed by
Dave Barach
parent
eea28d78a3
commit
878c609889
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user