|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
36 s =
format (s,
"adj-idx %d : %U",
71 u32 pi0, rw_len0, len0, adj_index0, next0 = 0;
74 pi0 = to_next[0] =
from[0];
93 rw_len0 = adj0[0].rewrite_header.data_bytes;
110 if (
PREDICT_TRUE(len0 <= adj0[0].rewrite_header.max_l3_packet_bytes))
116 tx_sw_if_index0 = adj0[0].rewrite_header.sw_if_index;
139 next0 = adj0[0].rewrite_header.next_index;
155 to_next, n_left_to_next,
162 return frame->n_vectors;
186 .name =
"adj-l2-rewrite",
187 .vector_size =
sizeof (
u32),
198 .name =
"adj-l2-midchain",
199 .vector_size =
sizeof (
u32),
static int adj_are_counters_enabled(void)
Get the global configuration option for enabling per-adj counters.
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
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.
u32 adj_index
Adjacency index taken.
vlib_main_t vlib_node_runtime_t * node
@ ADJ_L2_REWRITE_NEXT_DROP
@ VNET_REWRITE_HAS_FEATURES
This adjacency/interface has output features configured.
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
u8 output_feature_arc_index
static uword vlib_buffer_length_in_chain(vlib_main_t *vm, vlib_buffer_t *b)
Get length in bytes of the buffer chain.
static_always_inline void * vnet_feature_arc_start_w_cfg_index(u8 arc, u32 sw_if_index, u32 *next, vlib_buffer_t *b, u32 cfg_index)
static u8 * format_adj_l2_trace(u8 *s, va_list *args)
enum adj_l2_rewrite_next_t_ adj_l2_rewrite_next_t
i16 current_data
signed offset in data[], pre_data[] that we are currently processing.
#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.
vlib_node_registration_t adj_l2_midchain_node
(constructor) VLIB_REGISTER_NODE (adj_l2_midchain_node)
struct _vlib_node_registration vlib_node_registration_t
u16 current_length
Nbytes between current data and the end of this buffer.
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.
ethernet_main_t ethernet_main
description fragment has unexpected format
vlib_combined_counter_main_t adjacency_counters
Adjacency packet counters.
vlib_put_next_frame(vm, node, next_index, 0)
u32 ia_cfg_index
feature [arc] config index
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.
static uword adj_l2_rewrite_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_midchain, int do_counters)
vlib_node_registration_t adj_l2_rewrite_node
(constructor) VLIB_REGISTER_NODE (adj_l2_rewrite_node)
#define vnet_rewrite_one_header(rw0, p0, most_likely_size)
struct adj_l2_trace_t_ adj_l2_trace_t
Trace data for a L2 Midchain.
#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.
Trace data for a L2 Midchain.
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.