|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
43 #define foreach_llc_input_next \
44 _ (PUNT, "error-punt") \
45 _ (DROP, "error-drop")
49 #define _(s,n) LLC_INPUT_NEXT_##s,
102 u8 next0, next1, len0, len1, enqueue_code;
143 node->errors[next0 ==
144 LLC_INPUT_NEXT_DROP ? LLC_ERROR_UNKNOWN_PROTOCOL :
147 node->errors[next1 ==
148 LLC_INPUT_NEXT_DROP ? LLC_ERROR_UNKNOWN_PROTOCOL :
155 switch (enqueue_code)
215 node->errors[next0 ==
216 LLC_INPUT_NEXT_DROP ? LLC_ERROR_UNKNOWN_PROTOCOL :
228 to_next, n_left_to_next);
253 .vector_size =
sizeof (
u32),
260 #define _(s,n) [LLC_INPUT_NEXT_##s] = n,
static u8 llc_header_length(llc_header_t *h)
format_function_t format_llc_header
#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.
#define foreach_llc_error
static char * llc_error_strings[]
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
static llc_protocol_info_t * llc_get_protocol_info(llc_main_t *m, llc_protocol_t protocol)
static u8 * format_llc_input_trace(u8 *s, va_list *va)
#define vlib_call_init_function(vm, x)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
vlib_main_t vlib_node_runtime_t vlib_frame_t * from_frame
vlib_node_registration_t llc_input_node
(constructor) VLIB_REGISTER_NODE (llc_input_node)
#define clib_error_report(e)
#define CLIB_PREFETCH(addr, size, type)
static void vlib_buffer_advance(vlib_buffer_t *b, word l)
Advance current data pointer by the supplied (signed!) amount.
vlib_error_t error
Error code for buffers to be enqueued to error handler.
#define VLIB_NODE_FLAG_TRACE
format_function_t format_llc_header_with_length
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
unformat_function_t unformat_llc_header
#define foreach_llc_input_next
sll srl srl sll sra u16x4 i
static clib_error_t * llc_input_init(vlib_main_t *vm)
struct _vlib_node_registration vlib_node_registration_t
description fragment has unexpected format
vlib_put_next_frame(vm, node, next_index, 0)
static clib_error_t * llc_init(vlib_main_t *vm)
u8 input_next_by_protocol[256]
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
static uword llc_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
static void llc_setup_node(vlib_main_t *vm, u32 node_index)
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)
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)
#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,...)