|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
20 #ifndef CLIB_MARCH_VARIANT
39 s =
format (s,
"adj-idx %d : %U",
72 u32 pi0, rw_len0, adj_index0, next0 = 0;
75 pi0 = to_next[0] =
from[0];
95 rw_len0 = adj0[0].rewrite_header.data_bytes;
106 adj0[0].rewrite_header.max_l3_packet_bytes)))
112 tx_sw_if_index0 = adj0[0].rewrite_header.sw_if_index;
128 tx_sw_if_index0, &next0, p0);
144 to_next, n_left_to_next,
151 return frame->n_vectors;
169 .name =
"adj-nsh-rewrite",
170 .vector_size =
sizeof (
u32),
181 .name =
"adj-nsh-midchain",
182 .vector_size =
sizeof (
u32),
196 .arc_name =
"nsh-output",
203 .arc_name =
"nsh-output",
204 .node_name =
"error-drop",
struct _nsh_main_placeholder nsh_main_placeholder_t
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
nat44_ei_hairpin_src_next_t next_index
vlib_node_registration_t adj_nsh_midchain_node
(constructor) VLIB_REGISTER_NODE (adj_nsh_midchain_node)
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.
u32 adj_index
Adjacency index taken.
vlib_main_t vlib_node_runtime_t * node
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static uword vlib_buffer_length_in_chain(vlib_main_t *vm, vlib_buffer_t *b)
Get length in bytes of the buffer chain.
nsh_main_placeholder_t nsh_main_placeholder
struct adj_nsh_trace_t_ adj_nsh_trace_t
Trace data for a NSH Midchain.
i16 current_data
signed offset in data[], pre_data[] that we are currently processing.
vlib_node_registration_t adj_nsh_rewrite_node
(constructor) VLIB_REGISTER_NODE (adj_nsh_rewrite_node)
#define VLIB_NODE_FN(node)
static_always_inline uword vlib_get_thread_index(void)
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
enum adj_nsh_rewrite_next_t_ adj_gpe_rewrite_next_t
static u8 * format_adj_nsh_trace(u8 *s, va_list *args)
@ ADJ_NSH_REWRITE_NEXT_DROP
struct _vlib_node_registration vlib_node_registration_t
u16 current_length
Nbytes between current data and the end of this buffer.
Trace data for a NSH Midchain.
VNET_FEATURE_INIT(nsh_tx_drop, static)
VNET_FEATURE_ARC_INIT(nsh_output, static)
union ip_adjacency_t_::@144 sub_type
#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_combined_counter_main_t adjacency_counters
Adjacency packet counters.
vlib_put_next_frame(vm, node, next_index, 0)
static uword adj_nsh_rewrite_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_midchain)
void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
#define VNET_FEATURES(...)
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
#define vnet_rewrite_one_header(rw0, p0, most_likely_size)
static_always_inline void vnet_feature_arc_start(u8 arc, u32 sw_if_index, u32 *next0, vlib_buffer_t *b0)
#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 ip_adjacency_t * adj_get(adj_index_t adj_index)
Get a pointer to an adjacency object from its index.
vlib_increment_combined_counter(ccm, ti, sw_if_index, n_buffers, n_bytes)
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,...)
struct ip_adjacency_t_::@144::@146 midchain
IP_LOOKUP_NEXT_MIDCHAIN.