summaryrefslogtreecommitdiffstats
path: root/src/vlib/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlib/main.c')
-rw-r--r--src/vlib/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vlib/main.c b/src/vlib/main.c
index f833aa25acf..c7c4aba3080 100644
--- a/src/vlib/main.c
+++ b/src/vlib/main.c
@@ -1581,6 +1581,8 @@ vlib_main_or_worker_loop (vlib_main_t * vm, int is_main)
if (PREDICT_FALSE (vm->check_frame_queues + frame_queue_check_counter))
{
u32 processed = 0;
+ vlib_frame_queue_dequeue_fn_t *fn =
+ vlib_buffer_func_main.frame_queue_dequeue_fn;
if (vm->check_frame_queues)
{
@@ -1589,7 +1591,7 @@ vlib_main_or_worker_loop (vlib_main_t * vm, int is_main)
}
vec_foreach (fqm, tm->frame_queue_mains)
- processed += vlib_frame_queue_dequeue (vm, fqm);
+ processed += (fn) (vm, fqm);
/* No handoff queue work found? */
if (processed)