|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
47 #define foreach_osi_input_next \
48 _ (PUNT, "error-punt") \
49 _ (DROP, "error-drop")
53 #define _(s,n) OSI_INPUT_NEXT_##s,
106 u8 next0, next1, enqueue_code;
141 node->errors[next0 ==
142 OSI_INPUT_NEXT_DROP ? OSI_ERROR_UNKNOWN_PROTOCOL :
145 node->errors[next1 ==
146 OSI_INPUT_NEXT_DROP ? OSI_ERROR_UNKNOWN_PROTOCOL :
153 switch (enqueue_code)
209 node->errors[next0 ==
210 OSI_INPUT_NEXT_DROP ? OSI_ERROR_UNKNOWN_PROTOCOL :
247 .vector_size =
sizeof (
u32),
254 #define _(s,n) [OSI_INPUT_NEXT_##s] = n,
#define vlib_prefetch_buffer_header(b, type)
Prefetch buffer metadata.
static uword vlib_node_add_next(vlib_main_t *vm, uword node, uword next_node)
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.
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)
format_function_t format_osi_header_with_length
vlib_main_t vlib_node_runtime_t * node
unformat_function_t unformat_pg_osi_header
static osi_protocol_info_t * osi_get_protocol_info(osi_main_t *m, osi_protocol_t protocol)
#define vlib_call_init_function(vm, x)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
u8 input_next_by_protocol[256]
vlib_main_t vlib_node_runtime_t vlib_frame_t * from_frame
#define clib_error_report(e)
unformat_function_t * unformat_buffer
static void osi_setup_node(vlib_main_t *vm, u32 node_index)
static u8 * format_osi_input_trace(u8 *s, va_list *va)
void hdlc_register_input_protocol(vlib_main_t *vm, hdlc_protocol_t protocol, u32 node_index)
#define CLIB_PREFETCH(addr, size, type)
format_function_t * format_buffer
vlib_error_t error
Error code for buffers to be enqueued to error handler.
unformat_function_t * unformat_edit
#define VLIB_NODE_FLAG_TRACE
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
static pg_node_t * pg_get_node(uword node_index)
#define foreach_osi_error
unformat_function_t unformat_osi_header
static vlib_node_t * vlib_get_node(vlib_main_t *vm, u32 i)
Get vlib node by index.
struct _vlib_node_registration vlib_node_registration_t
description fragment has unexpected format
vlib_put_next_frame(vm, node, next_index, 0)
static void vlib_set_next_frame_buffer(vlib_main_t *vm, vlib_node_runtime_t *node, u32 next_index, u32 buffer_index)
#define VLIB_INIT_FUNCTION(x)
vl_api_ip_proto_t protocol
void osi_register_input_protocol(osi_protocol_t protocol, u32 node_index)
vlib_node_registration_t osi_input_node
(constructor) VLIB_REGISTER_NODE (osi_input_node)
static uword osi_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
static clib_error_t * osi_init(vlib_main_t *vm)
format_function_t format_osi_header
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 clib_error_t * osi_input_init(vlib_main_t *vm)
void llc_register_input_protocol(vlib_main_t *vm, llc_protocol_t protocol, u32 node_index)
static char * osi_error_strings[]
#define foreach_osi_input_next
#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).
VLIB buffer representation.
#define VLIB_REGISTER_NODE(x,...)