aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/buffer_funcs.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-04-25 10:46:26 +0200
committerFlorin Coras <florin.coras@gmail.com>2021-04-27 14:29:23 +0000
commit23c3488b9ba27ca1c146f817eb98aec8d2537cac (patch)
treeb7cb8cfaede6d507afa96d574e0848285019ca8c /src/vlib/buffer_funcs.c
parent83b2f5e34bba21f9ce8f04719715d3b85b16a2e8 (diff)
misc: add StatementMacros to .clang-format
Type: make Change-Id: I79d8d0aa8b8349df0b3c1f338861350e8df31ca6 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/buffer_funcs.c')
-rw-r--r--src/vlib/buffer_funcs.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/vlib/buffer_funcs.c b/src/vlib/buffer_funcs.c
index 3be0914a29e..f3023a3ba27 100644
--- a/src/vlib/buffer_funcs.c
+++ b/src/vlib/buffer_funcs.c
@@ -4,9 +4,10 @@
#include <vlib/vlib.h>
-void __clib_section (".vlib_buffer_enqueue_to_next_fn") CLIB_MULTIARCH_FN (
- vlib_buffer_enqueue_to_next_fn) (vlib_main_t *vm, vlib_node_runtime_t *node,
- u32 *buffers, u16 *nexts, uword count)
+void __clib_section (".vlib_buffer_enqueue_to_next_fn")
+CLIB_MULTIARCH_FN (vlib_buffer_enqueue_to_next_fn)
+(vlib_main_t *vm, vlib_node_runtime_t *node, u32 *buffers, u16 *nexts,
+ uword count)
{
u32 *to_next, n_left_to_next, max;
u16 next_index;
@@ -123,12 +124,13 @@ void __clib_section (".vlib_buffer_enqueue_to_next_fn") CLIB_MULTIARCH_FN (
}
vlib_put_next_frame (vm, node, next_index, n_left_to_next);
}
+
CLIB_MARCH_FN_REGISTRATION (vlib_buffer_enqueue_to_next_fn);
void __clib_section (".vlib_buffer_enqueue_to_single_next_fn")
- CLIB_MULTIARCH_FN (vlib_buffer_enqueue_to_single_next_fn) (
- vlib_main_t *vm, vlib_node_runtime_t *node, u32 *buffers, u16 next_index,
- u32 count)
+CLIB_MULTIARCH_FN (vlib_buffer_enqueue_to_single_next_fn)
+(vlib_main_t *vm, vlib_node_runtime_t *node, u32 *buffers, u16 next_index,
+ u32 count)
{
u32 *to_next, n_left_to_next, n_enq;
@@ -159,12 +161,13 @@ next:
}
vlib_put_next_frame (vm, node, next_index, n_left_to_next);
}
+
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)
+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_thread_main_t *tm = vlib_get_thread_main ();
vlib_frame_queue_main_t *fqm;