|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
94 u32 * last_sw_if_index,
u32 * cnt,
136 u32 last_sw_if_index = ~0;
154 #if (CLIB_N_PREFETCHES >= 8)
211 &last_sw_if_index, &cnt, &arc_enabled);
213 &last_sw_if_index, &cnt, &arc_enabled);
215 &last_sw_if_index, &cnt, &arc_enabled);
217 &last_sw_if_index, &cnt, &arc_enabled);
237 #elif (CLIB_N_PREFETCHES >= 4)
281 &last_sw_if_index, &cnt, &arc_enabled);
283 &last_sw_if_index, &cnt, &arc_enabled);
293 &next0, &next1, verify_checksum);
325 return frame->n_vectors;
376 #ifndef CLIB_MARCH_VARIANT
378 #define _(sym,string) string,
387 .vector_size =
sizeof (
u32),
409 .name =
"ip4-input-no-checksum",
410 .vector_size =
sizeof (
u32),
412 .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
@ 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
struct ip4_main_t::@372 host_config
Template information for VPP generated packets.
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,...)