21 #define foreach_l2_uu_fwd_error \ 22 _(L2_UU_FWD, "L2 UU fwd") 26 #define _(sym,str) L2_UU_FWD_ERROR_##sym, 33 #define _(sym,string) string, 70 n_left_from =
frame->n_vectors;
71 next_index =
node->cached_next_index;
73 while (n_left_from > 0)
79 while (n_left_from >= 8 && n_left_to_next >= 4)
84 u32 bi0, bi1, bi2, bi3;
99 bi0 = to_next[0] = from[0];
100 bi1 = to_next[1] = from[1];
101 bi2 = to_next[2] = from[2];
102 bi3 = to_next[3] = from[3];
133 (b0->
flags & VLIB_BUFFER_IS_TRACED)))
141 (b1->
flags & VLIB_BUFFER_IS_TRACED)))
149 (b1->
flags & VLIB_BUFFER_IS_TRACED)))
157 (b1->
flags & VLIB_BUFFER_IS_TRACED)))
165 to_next, n_left_to_next,
167 next0, next1, next2, next3);
170 while (n_left_from > 0 && n_left_to_next > 0)
193 (b0->
flags & VLIB_BUFFER_IS_TRACED)))
201 to_next, n_left_to_next,
209 L2_UU_FWD_ERROR_L2_UU_FWD,
frame->n_vectors);
211 return frame->n_vectors;
217 .vector_size =
sizeof (
u32),
u32 flags
buffer flags: VLIB_BUFFER_FREE_LIST_INDEX_MASK: bits used to store free list index, VLIB_BUFFER_IS_TRACED: trace this buffer.
#define foreach_l2_uu_fwd_error
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
#define vlib_validate_buffer_enqueue_x4(vm, node, next_index, to_next, n_left_to_next, bi0, bi1, bi2, bi3, next0, next1, next2, next3)
Finish enqueueing four buffers forward in the graph.
#define VLIB_NODE_FN(node)
static char * l2_uu_fwd_error_strings[]
description fragment has unexpected format
#define vlib_prefetch_buffer_header(b, type)
Prefetch buffer metadata.
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
vlib_node_registration_t l2_uu_fwd_node
(constructor) VLIB_REGISTER_NODE (l2_uu_fwd_node)
vl_api_fib_path_type_t type
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
#define vlib_validate_buffer_enqueue_x1(vm, node, next_index, to_next, n_left_to_next, bi0, next0)
Finish enqueueing one buffer forward in the graph.
#define vlib_get_next_frame(vm, node, next_index, vectors, n_vectors_left)
Get pointer to next frame vector data by (vlib_node_runtime_t, next_index).
static void vlib_node_increment_counter(vlib_main_t *vm, u32 node_index, u32 counter_index, u64 increment)
#define VLIB_REGISTER_NODE(x,...)
vlib_put_next_frame(vm, node, next_index, 0)
nat44_ei_hairpin_src_next_t next_index
vlib_main_t vlib_node_runtime_t * node
VLIB buffer representation.
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
l2_bridge_domain_t * bd_configs
void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
#define VLIB_NODE_FLAG_TRACE
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.
static u8 * format_l2_uu_fwd_trace(u8 *s, va_list *args)