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/threads.h | |
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/threads.h')
-rw-r--r-- | src/vlib/threads.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vlib/threads.h b/src/vlib/threads.h index b25d4764168..97df3d253a0 100644 --- a/src/vlib/threads.h +++ b/src/vlib/threads.h @@ -75,6 +75,7 @@ typedef struct CLIB_CACHE_LINE_ALIGN_MARK (cacheline1); u32 buffer_index[VLIB_FRAME_SIZE]; + u32 aux_data[VLIB_FRAME_SIZE]; } vlib_frame_queue_elt_t; @@ -133,7 +134,10 @@ typedef struct } vlib_frame_queue_t; -typedef struct +struct vlib_frame_queue_main_t_; +typedef u32 (vlib_frame_queue_dequeue_fn_t) ( + vlib_main_t *vm, struct vlib_frame_queue_main_t_ *fqm); +typedef struct vlib_frame_queue_main_t_ { u32 node_index; u32 frame_queue_nelts; @@ -143,6 +147,7 @@ typedef struct /* for frame queue tracing */ frame_queue_trace_t *frame_queue_traces; frame_queue_nelt_counter_t *frame_queue_histogram; + vlib_frame_queue_dequeue_fn_t *frame_queue_dequeue_fn; } vlib_frame_queue_main_t; typedef struct |