|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
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",
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))
150 n_left_to_next, bi0, next0);
162 .name =
"vxlan-gpe-transit-ioam",
163 .vector_size =
sizeof (
u32),
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_next_t
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_TYPE_INTERNAL
vxlan_gpe_ioam_main_t vxlan_gpe_ioam_main
vlib_main_t vlib_node_runtime_t * node
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
vlib_main_t vlib_node_runtime_t vlib_frame_t * from_frame
@ VXLAN_GPE_TRANSIT_IOAM_N_NEXT
static void vlib_buffer_advance(vlib_buffer_t *b, word l)
Advance current data pointer by the supplied (signed!) amount.
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
#define foreach_vxlan_gpe_transit_ioam_error
@ VXLAN_GPE_TRANSIT_IOAM_NEXT_OUTPUT
struct _vlib_node_registration vlib_node_registration_t
ip46_address_t fp_addr
The address type is not deriveable from the fp_addr member.
#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.
vlib_node_registration_t vxlan_gpe_transit_ioam_node
(constructor) VLIB_REGISTER_NODE (vxlan_gpe_transit_ioam_node)
vxlan_gpe_transit_ioam_error_t
#define hash_get_mem(h, key)
static uword vxlan_gpe_transit_ioam(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
static char * vxlan_gpe_transit_ioam_error_strings[]
vlib_put_next_frame(vm, node, next_index, 0)
VNET_FEATURE_INIT(vxlan_gpe_transit_ioam, static)
fib_protocol_t fp_proto
protocol type
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
#define VNET_FEATURES(...)
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
static u8 * format_vxlan_gpe_ioam_v4_trace(u8 *s, va_list *args)
@ VXLAN_GPE_TRANSIT_IOAM_N_ERROR
#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).
Aggregate type for a prefix.
vl_api_fib_path_type_t type
@ VXLAN_GPE_TRANSIT_IOAM_NEXT_DROP
VLIB buffer representation.
#define VLIB_REGISTER_NODE(x,...)