FD.io VPP  v21.01.1
Vector Packet Processing
input.c File Reference
+ Include dependency graph for input.c:

Go to the source code of this file.

Macros

#define foreach_avf_input_error   _(BUFFER_ALLOC, "buffer alloc error")
 
#define AVF_INPUT_REFILL_TRESHOLD   32
 

Enumerations

enum  avf_input_error_t { AVF_INPUT_N_ERROR }
 

Functions

static_always_inline void avf_rx_desc_write (avf_rx_desc_t *d, u64 addr)
 
static_always_inline void avf_rxq_refill (vlib_main_t *vm, vlib_node_runtime_t *node, avf_rxq_t *rxq, int use_va_dma)
 
static_always_inline uword avf_rx_attach_tail (vlib_main_t *vm, vlib_buffer_t *bt, vlib_buffer_t *b, u64 qw1, avf_rx_tail_t *t)
 
static_always_inline uword avf_process_rx_burst (vlib_main_t *vm, vlib_node_runtime_t *node, avf_per_thread_data_t *ptd, u32 n_left, int maybe_multiseg)
 
static_always_inline uword avf_device_input_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, avf_device_t *ad, u16 qid)
 
VLIB_NODE_FN() avf_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

static __clib_unused char * avf_input_error_strings []
 
vlib_node_registration_t avf_input_node
 (constructor) VLIB_REGISTER_NODE (avf_input_node) More...
 

Macro Definition Documentation

◆ AVF_INPUT_REFILL_TRESHOLD

#define AVF_INPUT_REFILL_TRESHOLD   32

Definition at line 43 of file input.c.

◆ foreach_avf_input_error

#define foreach_avf_input_error   _(BUFFER_ALLOC, "buffer alloc error")

Definition at line 26 of file input.c.

Enumeration Type Documentation

◆ avf_input_error_t

Enumerator
AVF_INPUT_N_ERROR 

Definition at line 29 of file input.c.

Function Documentation

◆ avf_device_input_inline()

static_always_inline uword avf_device_input_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
avf_device_t ad,
u16  qid 
)

Definition at line 234 of file input.c.

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

◆ avf_input_node()

VLIB_NODE_FN() avf_input_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 446 of file input.c.

+ Here is the call graph for this function:

◆ avf_process_rx_burst()

static_always_inline uword avf_process_rx_burst ( vlib_main_t vm,
vlib_node_runtime_t node,
avf_per_thread_data_t ptd,
u32  n_left,
int  maybe_multiseg 
)

Definition at line 161 of file input.c.

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

◆ avf_rx_attach_tail()

static_always_inline uword avf_rx_attach_tail ( vlib_main_t vm,
vlib_buffer_t bt,
vlib_buffer_t b,
u64  qw1,
avf_rx_tail_t t 
)

Definition at line 133 of file input.c.

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

◆ avf_rx_desc_write()

static_always_inline void avf_rx_desc_write ( avf_rx_desc_t d,
u64  addr 
)

Definition at line 46 of file input.c.

+ Here is the caller graph for this function:

◆ avf_rxq_refill()

static_always_inline void avf_rxq_refill ( vlib_main_t vm,
vlib_node_runtime_t node,
avf_rxq_t rxq,
int  use_va_dma 
)

Definition at line 58 of file input.c.

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

Variable Documentation

◆ avf_input_error_strings

__clib_unused char* avf_input_error_strings[]
static
Initial value:
= {
#define _(n,s)
}
#define foreach_avf_input_error
Definition: input.c:26

Definition at line 37 of file input.c.

◆ avf_input_node

vlib_node_registration_t avf_input_node
Initial value:
= {
.name = "avf-input",
.sibling_of = "device-input",
.format_trace = format_avf_input_trace,
.state = VLIB_NODE_STATE_DISABLED,
.n_errors = AVF_INPUT_N_ERROR,
.error_strings = avf_input_error_strings,
}
#define VLIB_NODE_FLAG_TRACE_SUPPORTED
Definition: node.h:306
format_function_t format_avf_input_trace
Definition: avf.h:308
static __clib_unused char * avf_input_error_strings[]
Definition: input.c:37

(constructor) VLIB_REGISTER_NODE (avf_input_node)

Definition at line 465 of file input.c.