27 #define foreach_vxlan_gpe_decap_ioam_v4_error \ 28 _(DECAPSULATED, "good packets decapsulated") 31 #define _(sym,string) string, 38 #define _(sym,str) VXLAN_GPE_DECAP_IOAM_V4_ERROR_##sym, 70 u32 n_left_from, next_index, *from, *to_next;
79 while (n_left_from > 0)
85 while (n_left_from >= 4 && n_left_to_next >= 2)
134 n_left_to_next, bi0, bi1, next0,
144 while (n_left_from > 0 && n_left_to_next > 0)
177 n_left_to_next, bi0, next0);
199 .name =
"vxlan-gpe-decap-ioam-v4",
200 .vector_size =
sizeof (
u32),
void vlib_put_next_frame(vlib_main_t *vm, vlib_node_runtime_t *r, u32 next_index, u32 n_vectors_left)
Release pointer to next frame vector data.
static uword vxlan_gpe_decap_ioam_v4(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
static char * vxlan_gpe_decap_ioam_v4_error_strings[]
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
vlib_node_registration_t vxlan_gpe_decap_ioam_v4_node
(constructor) VLIB_REGISTER_NODE (vxlan_gpe_decap_ioam_v4_node)
uword decap_v4_next_override
vxlan_gpe_ioam_main_t vxlan_gpe_ioam_main
static void vxlan_gpe_decap_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)
vxlan_gpe_main_t vxlan_gpe_main
#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_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 u8 * format_vxlan_gpe_ioam_v4_trace(u8 *s, va_list *args)
static void vxlan_gpe_encap_decap_ioam_v4_one_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_buffer_t *b0, u32 *next0, u32 drop_node_val, u8 use_adj)
#define CLIB_PREFETCH(addr, size, type)
static void vlib_buffer_advance(vlib_buffer_t *b, word l)
Advance current data pointer by the supplied (signed!) amount.
#define foreach_vxlan_gpe_decap_ioam_v4_error
vxlan_gpe_decap_ioam_v4_error_t
Struct for VXLAN GPE node state.
#define VLIB_BUFFER_IS_TRACED
static void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
#define vlib_prefetch_buffer_header(b, type)
Prefetch buffer metadata.
#define VLIB_REGISTER_NODE(x,...)
static uword vxlan_gpe_decap_ioam(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, u8 is_ipv6)
#define CLIB_CACHE_LINE_BYTES
u32 flags
buffer flags: VLIB_BUFFER_IS_TRACED: trace this buffer.
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.