FD.io VPP  v20.09-64-g4f7b92f0a
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 31 of file input.c.

Enumeration Type Documentation

◆ mrvl_pp2_input_error_t

Enumerator
MRVL_PP2_INPUT_N_ERROR 

Definition at line 42 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 159 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 355 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 57 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 104 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 72 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)
}
#define foreach_mrvl_pp2_input_error
Definition: input.c:31

Definition at line 50 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,
}
format_function_t format_mrvl_pp2_input_trace
Definition: pp2.h:135
#define VLIB_NODE_FLAG_TRACE_SUPPORTED
Definition: node.h:305
uword mrvl_pp2_input_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: input.c:355
static __clib_unused char * mrvl_pp2_input_error_strings[]
Definition: input.c:50

(constructor) VLIB_REGISTER_NODE (mrvl_pp2_input_node)

Definition at line 375 of file input.c.