FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
input.c File Reference
+ Include dependency graph for input.c:

Go to the source code of this file.

Macros

#define foreach_mrvl_pp2_input_error
 

Enumerations

enum  mrvl_pp2_input_error_t { MRVL_PP2_INPUT_N_ERROR }
 

Functions

static_always_inline void mrvl_pp2_input_trace (vlib_main_t *vm, vlib_node_runtime_t *node, u32 next0, vlib_buffer_t *b0, uword *n_trace, mrvl_pp2_if_t *ppif, struct pp2_ppio_desc *d)
 
static_always_inline u16 mrvl_pp2_set_buf_data_len_flags (vlib_buffer_t *b, struct pp2_ppio_desc *d, u32 add_flags)
 
static_always_inline u16 mrvl_pp2_next_from_desc (vlib_node_runtime_t *node, struct pp2_ppio_desc *d, vlib_buffer_t *b, u32 *next)
 
static_always_inline uword mrvl_pp2_device_input_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, mrvl_pp2_if_t *ppif, u16 qid)
 
uword mrvl_pp2_input_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

static __clib_unused char * mrvl_pp2_input_error_strings []
 
vlib_node_registration_t mrvl_pp2_input_node
 (constructor) VLIB_REGISTER_NODE (mrvl_pp2_input_node) More...
 

Macro Definition Documentation

◆ foreach_mrvl_pp2_input_error

#define foreach_mrvl_pp2_input_error
Value:
_(PPIO_RECV, "pp2_ppio_recv error") \
_(BPOOL_GET_NUM_BUFFS, "pp2_bpool_get_num_buffs error") \
_(BPOOL_PUT_BUFFS, "pp2_bpool_put_buffs error") \
_(BUFFER_ALLOC, "buffer alloc error") \
_(MAC_CE, "MAC error (CRC error)") \
_(MAC_OR, "overrun error") \
_(MAC_RSVD, "unknown MAC error") \
_(MAC_RE, "resource error") \
_(IP_HDR, "ip4 header error")

Definition at line 32 of file input.c.

Enumeration Type Documentation

◆ mrvl_pp2_input_error_t

Enumerator
MRVL_PP2_INPUT_N_ERROR 

Definition at line 43 of file input.c.

Function Documentation

◆ mrvl_pp2_device_input_inline()

static_always_inline uword mrvl_pp2_device_input_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
mrvl_pp2_if_t ppif,
u16  qid 
)

Definition at line 162 of file input.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mrvl_pp2_input_fn()

uword mrvl_pp2_input_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 353 of file input.c.

+ Here is the call graph for this function:

◆ mrvl_pp2_input_trace()

static_always_inline void mrvl_pp2_input_trace ( vlib_main_t vm,
vlib_node_runtime_t node,
u32  next0,
vlib_buffer_t b0,
uword n_trace,
mrvl_pp2_if_t ppif,
struct pp2_ppio_desc *  d 
)

Definition at line 58 of file input.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mrvl_pp2_next_from_desc()

static_always_inline u16 mrvl_pp2_next_from_desc ( vlib_node_runtime_t node,
struct pp2_ppio_desc *  d,
vlib_buffer_t b,
u32 next 
)

Definition at line 107 of file input.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mrvl_pp2_set_buf_data_len_flags()

static_always_inline u16 mrvl_pp2_set_buf_data_len_flags ( vlib_buffer_t b,
struct pp2_ppio_desc *  d,
u32  add_flags 
)

Definition at line 75 of file input.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ mrvl_pp2_input_error_strings

__clib_unused char* mrvl_pp2_input_error_strings[]
static
Initial value:
= {
#define _(n,s)
}

Definition at line 51 of file input.c.

◆ mrvl_pp2_input_node

vlib_node_registration_t mrvl_pp2_input_node
Initial value:
= {
.function = mrvl_pp2_input_fn,
.name = "mrvl-pp2-input",
.sibling_of = "device-input",
.format_trace = format_mrvl_pp2_input_trace,
.state = VLIB_NODE_STATE_POLLING,
.error_strings = mrvl_pp2_input_error_strings,
}

(constructor) VLIB_REGISTER_NODE (mrvl_pp2_input_node)

Definition at line 374 of file input.c.

VLIB_NODE_TYPE_INPUT
@ VLIB_NODE_TYPE_INPUT
Definition: node.h:76
mrvl_pp2_input_error_strings
static __clib_unused char * mrvl_pp2_input_error_strings[]
Definition: input.c:51
mrvl_pp2_input_fn
uword mrvl_pp2_input_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: input.c:353
foreach_mrvl_pp2_input_error
#define foreach_mrvl_pp2_input_error
Definition: input.c:32
VLIB_NODE_FLAG_TRACE_SUPPORTED
#define VLIB_NODE_FLAG_TRACE_SUPPORTED
Definition: node.h:295
MRVL_PP2_INPUT_N_ERROR
@ MRVL_PP2_INPUT_N_ERROR
Definition: input.c:48
format_mrvl_pp2_input_trace
format_function_t format_mrvl_pp2_input_trace
Definition: pp2.h:136