|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
95 u32 * last_sw_if_index,
u32 * cnt,
137 u32 last_sw_if_index = ~0;
155 #if (CLIB_N_PREFETCHES >= 8)
212 &last_sw_if_index, &cnt, &arc_enabled);
214 &last_sw_if_index, &cnt, &arc_enabled);
216 &last_sw_if_index, &cnt, &arc_enabled);
218 &last_sw_if_index, &cnt, &arc_enabled);
238 #elif (CLIB_N_PREFETCHES >= 4)
282 &last_sw_if_index, &cnt, &arc_enabled);
284 &last_sw_if_index, &cnt, &arc_enabled);
294 &next0, &next1, verify_checksum);
326 return frame->n_vectors;
377 #ifndef CLIB_MARCH_VARIANT
379 #define _(sym,string) string,
388 .vector_size =
sizeof (
u32),
410 .name =
"ip4-input-no-checksum",
411 .vector_size =
sizeof (
u32),
413 .sibling_of =
"ip4-input",
u8 ttl
TTL to use for host generated packets.
vnet_interface_main_t * im
static_always_inline int vnet_have_features(u8 arc, u32 sw_if_index)
vlib_buffer_t * bufs[VLIB_FRAME_SIZE]
#define vlib_prefetch_buffer_header(b, type)
Prefetch buffer metadata.
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
u8 ucast_feature_arc_index
clib_error_t * ip4_source_and_port_range_check_init(vlib_main_t *vm)
ip4_main_t ip4_main
Global ip4 main structure.
vlib_get_buffers(vm, from, b, n_left_from)
void vlib_trace_frame_buffers_only(vlib_main_t *vm, vlib_node_runtime_t *node, u32 *buffers, uword n_buffers, uword next_buffer_stride, uword n_buffer_data_bytes_in_trace)
vlib_main_t vlib_node_runtime_t * node
struct ip4_main_t::@378 host_config
Template information for VPP generated packets.
@ VLIB_NODE_PROTO_HINT_IP4
#define vlib_call_init_function(vm, x)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
vlib_simple_counter_main_t * sw_if_counters
vlib_buffer_enqueue_to_next(vm, node, from,(u16 *) nexts, frame->n_vectors)
void hdlc_register_input_protocol(vlib_main_t *vm, hdlc_protocol_t protocol, u32 node_index)
static void vlib_increment_simple_counter(vlib_simple_counter_main_t *cm, u32 thread_index, u32 index, u64 increment)
Increment a simple counter.
static uword ip4_address_is_multicast(const ip4_address_t *a)
#define VLIB_NODE_FN(node)
unformat_function_t * unformat_edit
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
vnet_main_t * vnet_get_main(void)
u8 mcast_feature_arc_index
Feature arc indices.
#define VLIB_NODE_FLAG_TRACE
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
#define static_always_inline
static pg_node_t * pg_get_node(uword node_index)
vnet_feature_config_main_t * cm
struct _vlib_node_registration vlib_node_registration_t
description fragment has unexpected format
#define VLIB_INIT_FUNCTION(x)
static clib_error_t * ip4_cli_init(vlib_main_t *vm)
static vlib_node_runtime_t * vlib_node_get_runtime(vlib_main_t *vm, u32 node_index)
Get node runtime by node index.
#define foreach_ip4_error
A collection of simple counters.
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
void ppp_register_input_protocol(vlib_main_t *vm, ppp_protocol_t protocol, u32 node_index)
static_always_inline void vnet_feature_arc_start(u8 arc, u32 sw_if_index, u32 *next0, vlib_buffer_t *b0)
u16 nexts[VLIB_FRAME_SIZE]
u32 flow_hash_seed
Seed for Jenkins hash used to compute ip4 flow hash.
@ VNET_INTERFACE_COUNTER_IP4
vl_api_interface_index_t sw_if_index
void ethernet_register_input_type(vlib_main_t *vm, ethernet_type_t type, u32 node_index)
vnet_interface_main_t interface_main
#define vlib_prefetch_buffer_data(b, type)
VLIB buffer representation.
#define VLIB_REGISTER_NODE(x,...)