|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
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,
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);
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),
#define vlib_prefetch_buffer_header(b, type)
Prefetch buffer metadata.
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
static char * l2_uu_fwd_error_strings[]
nat44_ei_hairpin_src_next_t next_index
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.
vlib_node_registration_t l2_uu_fwd_node
(constructor) VLIB_REGISTER_NODE (l2_uu_fwd_node)
@ VLIB_NODE_TYPE_INTERNAL
vlib_main_t vlib_node_runtime_t * node
#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.
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
#define VLIB_NODE_FN(node)
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
#define VLIB_NODE_FLAG_TRACE
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
static void vlib_node_increment_counter(vlib_main_t *vm, u32 node_index, u32 counter_index, u64 increment)
#define foreach_l2_uu_fwd_error
struct _vlib_node_registration vlib_node_registration_t
#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.
description fragment has unexpected format
vlib_put_next_frame(vm, node, next_index, 0)
static u8 * format_l2_uu_fwd_trace(u8 *s, va_list *args)
void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
@ L2_UU_FWD_NEXT_L2_OUTPUT
#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).
vl_api_fib_path_type_t type
l2_bridge_domain_t * bd_configs
u32 flags
buffer flags: VLIB_BUFFER_FREE_LIST_INDEX_MASK: bits used to store free list index,...
VLIB buffer representation.
#define VLIB_REGISTER_NODE(x,...)