diff options
author | Damjan Marion <damarion@cisco.com> | 2021-05-01 14:56:13 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-05-03 11:09:38 +0000 |
commit | eee099e9579083fbce665e8c4a3617b9f0e5ea2f (patch) | |
tree | 300190f1778c296fa4f3ec98ce4b9b0692053a1f /src/vlib/main.c | |
parent | 757f470aefea09fda41df9cfa713ed16a9b67452 (diff) |
vlib: multiarch vlib_frame_queue_dequeue()
Fact that it needs to copy buffer indices justifies this move.
Type: improvement
Change-Id: I5eb815ccc4cca0ef70b092eb83a49b713efdcbeb
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/main.c')
-rw-r--r-- | src/vlib/main.c | 4 |
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) |