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_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 void avf_process_flow_offload (avf_device_t *ad, avf_per_thread_data_t *ptd, uword n_rx_packets)
 
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, int with_flows)
 
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,
int  with_flows 
)

Definition at line 259 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 550 of file input.c.

+ Here is the call graph for this function:

◆ avf_process_flow_offload()

static_always_inline void avf_process_flow_offload ( avf_device_t ad,
avf_per_thread_data_t ptd,
uword  n_rx_packets 
)

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_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 192 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)
}

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,
}

(constructor) VLIB_REGISTER_NODE (avf_input_node)

Definition at line 575 of file input.c.

format_avf_input_trace
format_function_t format_avf_input_trace
Definition: avf.h:359
foreach_avf_input_error
#define foreach_avf_input_error
Definition: input.c:26
VLIB_NODE_TYPE_INPUT
@ VLIB_NODE_TYPE_INPUT
Definition: node.h:76
AVF_INPUT_N_ERROR
@ AVF_INPUT_N_ERROR
Definition: input.c:34
avf_input_error_strings
static __clib_unused char * avf_input_error_strings[]
Definition: input.c:37
VLIB_NODE_FLAG_TRACE_SUPPORTED
#define VLIB_NODE_FLAG_TRACE_SUPPORTED
Definition: node.h:295