|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
24 #define foreach_vxlan_gpe_pop_ioam_v4_error \
25 _(POPPED, "good packets popped")
28 #define _(sym,string) string,
35 #define _(sym,str) VXLAN_GPE_POP_IOAM_V4_ERROR_##sym,
63 s =
format (s,
"VXLAN_GPE_IOAM_POP: next_index %d len %d traced %d",
81 s = (*hm->
trace[type0]) (s, opt0);
86 format (s,
"\n unrecognized option %d length %d", type0,
152 if (gpe_ioam0->
length > clib_net_to_host_u16 (ip0->
length))
154 *next0 = VXLAN_GPE_INPUT_NEXT_DROP;
159 while (opt0 < limit0)
175 *next0 = VXLAN_GPE_INPUT_NEXT_DROP;
190 decap_next_node_list[gpe_ioam0->
protocol] : VXLAN_GPE_INPUT_NEXT_DROP;
284 n_left_to_next, bi0, bi1, next0,
307 n_left_to_next, bi0, next0);
327 .name =
"vxlan-gpe-pop-ioam-v4",
328 .vector_size =
sizeof (
u32),
338 #define _(s,n) [VXLAN_GPE_INPUT_NEXT_##s] = n,
#define foreach_vxlan_gpe_pop_ioam_v4_error
@ VXLAN_GPE_POP_IOAM_V4_N_ERROR
#define vlib_prefetch_buffer_header(b, type)
Prefetch buffer metadata.
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.
static void vxlan_gpe_ioam_pop_v4(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_buffer_t *b0)
static uword vxlan_gpe_pop_ioam_v4(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
@ VLIB_NODE_TYPE_INTERNAL
vxlan_gpe_ioam_main_t vxlan_gpe_ioam_main
vlib_main_t vlib_node_runtime_t * node
Struct for VXLAN GPE node state.
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
u8 protocol
see vxlan_gpe_protocol_t
vlib_main_t vlib_node_runtime_t vlib_frame_t * from_frame
static_always_inline void * clib_memcpy_fast(void *restrict dst, const void *restrict src, size_t n)
#define CLIB_PREFETCH(addr, size, type)
u8 * format_vxlan_gpe_pop_ioam_v4_trace(u8 *s, va_list *args)
static void vlib_buffer_advance(vlib_buffer_t *b, word l)
Advance current data pointer by the supplied (signed!) amount.
vxlan_gpe_main_t vxlan_gpe_main
VXLAN GPE Extension (iOAM) Header definition.
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
if(node->flags &VLIB_NODE_FLAG_TRACE) vnet_interface_output_trace(vm
int(* pop_options[256])(ip4_header_t *ip, vxlan_gpe_ioam_option_t *opt)
#define CLIB_CACHE_LINE_BYTES
static char * vxlan_gpe_pop_ioam_v4_error_strings[]
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 uword vxlan_gpe_pop_ioam(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, u8 is_ipv6)
void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
vxlan_gpe_pop_ioam_v4_error_t
static void vxlan_gpe_pop_ioam_v4_two_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vxlan_gpe_main_t *ngm, vlib_buffer_t *b0, vlib_buffer_t *b1, u32 *next0, u32 *next1)
#define vlib_validate_buffer_enqueue_x2(vm, node, next_index, to_next, n_left_to_next, bi0, bi1, next0, next1)
Finish enqueueing two buffers 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).
u8 *(* trace[256])(u8 *s, vxlan_gpe_ioam_option_t *opt)
vlib_node_registration_t vxlan_gpe_pop_ioam_v4_node
(constructor) VLIB_REGISTER_NODE (vxlan_gpe_pop_ioam_v4_node)
static void vxlan_gpe_pop_ioam_v4_one_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vxlan_gpe_main_t *ngm, vlib_buffer_t *b0, u32 *next0)
#define foreach_vxlan_gpe_input_next
next nodes for VXLAN GPE input
vl_api_fib_path_type_t type
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,...)