29 #define foreach_vxlan_gpe_transit_ioam_error \ 30 _(ENCAPSULATED, "good packets encapsulated") 33 #define _(sym,string) string, 40 #define _(sym,str) VXLAN_GPE_TRANSIT_IOAM_ERROR_##sym, 57 .arc_name =
"ip4-output",
58 .node_name =
"vxlan-gpe-transit-ioam",
67 u32 n_left_from, next_index, *from, *to_next;
74 while (n_left_from > 0)
81 while (n_left_from > 0 && n_left_to_next > 0)
97 iph_offset =
vnet_buffer (b0)->ip.save_rewrite_length;
108 ((ip0->
protocol == IP_PROTOCOL_UDP) &&
109 (clib_net_to_host_u16 (udp_hdr0->
dst_port) ==
110 UDP_DST_PORT_VXLAN_GPE)))
118 (gpe_hdr0->
protocol == VXLAN_GPE_PROTOCOL_IOAM))
123 memset (&key4, 0,
sizeof (key4));
150 n_left_to_next, bi0, next0);
162 .name =
"vxlan-gpe-transit-ioam",
163 .vector_size =
sizeof (
u32),
fib_protocol_t fp_proto
protocol type
vxlan_gpe_transit_ioam_next_t
vxlan_gpe_ioam_main_t vxlan_gpe_ioam_main
Aggregrate type for a prefix.
ip46_address_t fp_addr
The address type is not deriveable from the fp_addr member.
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
static char * vxlan_gpe_transit_ioam_error_strings[]
#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).
vlib_node_registration_t vxlan_gpe_transit_ioam_node
(constructor) VLIB_REGISTER_NODE (vxlan_gpe_transit_ioam_node)
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)
vxlan_gpe_transit_ioam_error_t
#define foreach_vxlan_gpe_transit_ioam_error
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.
u16 cached_next_index
Next frame index that vector arguments were last enqueued to last time this node ran.
static void vlib_buffer_advance(vlib_buffer_t *b, word l)
Advance current data pointer by the supplied (signed!) amount.
#define VNET_FEATURES(...)
static uword vxlan_gpe_transit_ioam(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
VNET_FEATURE_INIT(vxlan_gpe_transit_ioam, static)
#define hash_get_mem(h, key)
#define VLIB_REGISTER_NODE(x,...)
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.