aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/flowperpkt/flowperpkt.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-01-04 13:19:27 +0100
committerDave Barach <openvpp@barachs.net>2017-01-14 14:17:03 +0000
commit878c609889dcdc58538d40d8b3f662320f88573d (patch)
treefa241dadbdd1db60b47fe3f077ab3392716690d5 /src/plugins/flowperpkt/flowperpkt.c
parenteea28d78a3173341727aafee4c414bcb01001339 (diff)
vlib: add buffer and thread callbacks
Change-Id: I8e2e8f94a884ab2f9909d0c83ba00edd38cdab77 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/flowperpkt/flowperpkt.c')
-rw-r--r--src/plugins/flowperpkt/flowperpkt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/flowperpkt/flowperpkt.c b/src/plugins/flowperpkt/flowperpkt.c
index fb71d5b0ffc..cc35159906d 100644
--- a/src/plugins/flowperpkt/flowperpkt.c
+++ b/src/plugins/flowperpkt/flowperpkt.c
@@ -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);