diff options
author | Damjan Marion <damarion@cisco.com> | 2021-05-14 14:50:01 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-05-14 15:56:44 +0000 |
commit | 9e7a0b48fee601d03642931e2826a37bd92f6883 (patch) | |
tree | 374c35eb2b3ec43fa1341809c6b4120441331a4c /src/vlib | |
parent | ca1bbbb9e8015dacb55247e3e00fba79d13ad4ca (diff) |
vlib: pass node runtime to vlib_buffer_enqueue_to_thread()
Mechanical change for patch following this one...
Type: improvement
Change-Id: Iee12f3a8851f35569e6c039494a94fc36e83d20f
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib')
-rw-r--r-- | src/vlib/buffer_funcs.c | 5 | ||||
-rw-r--r-- | src/vlib/buffer_funcs.h | 5 | ||||
-rw-r--r-- | src/vlib/buffer_node.h | 9 |
3 files changed, 11 insertions, 8 deletions
diff --git a/src/vlib/buffer_funcs.c b/src/vlib/buffer_funcs.c index 9ed1bac16be..83ff296e705 100644 --- a/src/vlib/buffer_funcs.c +++ b/src/vlib/buffer_funcs.c @@ -163,8 +163,9 @@ CLIB_MARCH_FN_REGISTRATION (vlib_buffer_enqueue_to_single_next_fn); u32 __clib_section (".vlib_buffer_enqueue_to_thread_fn") CLIB_MULTIARCH_FN (vlib_buffer_enqueue_to_thread_fn) -(vlib_main_t *vm, u32 frame_queue_index, u32 *buffer_indices, - u16 *thread_indices, u32 n_packets, int drop_on_congestion) +(vlib_main_t *vm, vlib_node_runtime_t *node, u32 frame_queue_index, + u32 *buffer_indices, u16 *thread_indices, u32 n_packets, + int drop_on_congestion) { vlib_thread_main_t *tm = vlib_get_thread_main (); vlib_frame_queue_main_t *fqm; diff --git a/src/vlib/buffer_funcs.h b/src/vlib/buffer_funcs.h index d579e1bc2e1..8b8a3911776 100644 --- a/src/vlib/buffer_funcs.h +++ b/src/vlib/buffer_funcs.h @@ -60,8 +60,9 @@ typedef void (vlib_buffer_enqueue_to_single_next_fn_t) ( u32 count); typedef u32 (vlib_buffer_enqueue_to_thread_fn_t) ( - vlib_main_t *vm, u32 frame_queue_index, u32 *buffer_indices, - u16 *thread_indices, u32 n_packets, int drop_on_congestion); + vlib_main_t *vm, vlib_node_runtime_t *node, u32 frame_queue_index, + u32 *buffer_indices, u16 *thread_indices, u32 n_packets, + int drop_on_congestion); typedef u32 (vlib_frame_queue_dequeue_fn_t) (vlib_main_t *vm, vlib_frame_queue_main_t *fqm); diff --git a/src/vlib/buffer_node.h b/src/vlib/buffer_node.h index d2bd32f985a..9fece67f31f 100644 --- a/src/vlib/buffer_node.h +++ b/src/vlib/buffer_node.h @@ -355,13 +355,14 @@ vlib_buffer_enqueue_to_single_next (vlib_main_t * vm, } static_always_inline u32 -vlib_buffer_enqueue_to_thread (vlib_main_t * vm, u32 frame_queue_index, - u32 * buffer_indices, u16 * thread_indices, - u32 n_packets, int drop_on_congestion) +vlib_buffer_enqueue_to_thread (vlib_main_t *vm, vlib_node_runtime_t *node, + u32 frame_queue_index, u32 *buffer_indices, + u16 *thread_indices, u32 n_packets, + int drop_on_congestion) { vlib_buffer_enqueue_to_thread_fn_t *fn; fn = vlib_buffer_func_main.buffer_enqueue_to_thread_fn; - return (fn) (vm, frame_queue_index, buffer_indices, thread_indices, + return (fn) (vm, node, frame_queue_index, buffer_indices, thread_indices, n_packets, drop_on_congestion); } |