diff options
author | Mohammed Hawari <mohammed@hawari.fr> | 2022-05-18 10:08:47 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2022-05-24 14:03:00 +0000 |
commit | e71492655fab8a70285b3dcf1419420a337750f9 (patch) | |
tree | ef0a37b531ddcd32d04a205b789f4928c4a2cb2c /src/vlib/main.c | |
parent | 9a8d3d71071ca82c139dae5aa45cb0d4620ca9e3 (diff) |
vlib: implement aux data handoff
Type: improvement
Change-Id: I20b41537a249a55f01004e45392b34adaa8fd792
Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
Diffstat (limited to 'src/vlib/main.c')
-rw-r--r-- | src/vlib/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/vlib/main.c b/src/vlib/main.c index 41d18e2dfa6..9c7d6f58991 100644 --- a/src/vlib/main.c +++ b/src/vlib/main.c @@ -1519,8 +1519,7 @@ 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; + vlib_frame_queue_dequeue_fn_t *fn; if (vm->check_frame_queues) { @@ -1529,7 +1528,10 @@ vlib_main_or_worker_loop (vlib_main_t * vm, int is_main) } vec_foreach (fqm, tm->frame_queue_mains) - processed += (fn) (vm, fqm); + { + fn = fqm->frame_queue_dequeue_fn; + processed += (fn) (vm, fqm); + } /* No handoff queue work found? */ if (processed) |