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_vmxnet3_input_error
 

Enumerations

enum  vmxnet3_input_error_t { VMXNET3_INPUT_N_ERROR }
 

Functions

static_always_inline u16 vmxnet3_find_rid (vmxnet3_device_t *vd, vmxnet3_rx_comp *rx_comp)
 
static_always_inline void vmxnet3_rx_comp_ring_advance_next (vmxnet3_rxq_t *rxq)
 
static_always_inline void vmxnet3_handle_offload (vmxnet3_rx_comp *rx_comp, vlib_buffer_t *hb, u16 gso_size)
 
static_always_inline uword vmxnet3_device_input_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, vmxnet3_device_t *vd, u16 qid)
 
VLIB_NODE_FN() vmxnet3_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

static __clib_unused char * vmxnet3_input_error_strings []
 
vlib_node_registration_t vmxnet3_input_node
 (constructor) VLIB_REGISTER_NODE (vmxnet3_input_node) More...
 

Macro Definition Documentation

◆ foreach_vmxnet3_input_error

#define foreach_vmxnet3_input_error
Value:
_(BUFFER_ALLOC, "buffer alloc error") \
_(RX_PACKET_NO_SOP, "Rx packet error - no SOP") \
_(RX_PACKET, "Rx packet error") \
_(RX_PACKET_EOP, "Rx packet error found on EOP") \
_(NO_BUFFER, "Rx no buffer error")

Definition at line 29 of file input.c.

Enumeration Type Documentation

◆ vmxnet3_input_error_t

Enumerator
VMXNET3_INPUT_N_ERROR 

Definition at line 36 of file input.c.

Function Documentation

◆ vmxnet3_device_input_inline()

static_always_inline uword vmxnet3_device_input_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
vmxnet3_device_t vd,
u16  qid 
)

Definition at line 203 of file input.c.

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

◆ vmxnet3_find_rid()

static_always_inline u16 vmxnet3_find_rid ( vmxnet3_device_t vd,
vmxnet3_rx_comp *  rx_comp 
)

Definition at line 51 of file input.c.

+ Here is the caller graph for this function:

◆ vmxnet3_handle_offload()

static_always_inline void vmxnet3_handle_offload ( vmxnet3_rx_comp *  rx_comp,
vlib_buffer_t hb,
u16  gso_size 
)

Definition at line 78 of file input.c.

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

◆ vmxnet3_input_node()

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

Definition at line 469 of file input.c.

+ Here is the call graph for this function:

◆ vmxnet3_rx_comp_ring_advance_next()

static_always_inline void vmxnet3_rx_comp_ring_advance_next ( vmxnet3_rxq_t rxq)

Definition at line 65 of file input.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ vmxnet3_input_error_strings

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

Definition at line 44 of file input.c.

◆ vmxnet3_input_node

vlib_node_registration_t vmxnet3_input_node
Initial value:
= {
.name = "vmxnet3-input",
.sibling_of = "device-input",
.format_trace = format_vmxnet3_input_trace,
.state = VLIB_NODE_STATE_DISABLED,
.n_errors = VMXNET3_INPUT_N_ERROR,
.error_strings = vmxnet3_input_error_strings,
}

(constructor) VLIB_REGISTER_NODE (vmxnet3_input_node)

Definition at line 491 of file input.c.

VLIB_NODE_TYPE_INPUT
@ VLIB_NODE_TYPE_INPUT
Definition: node.h:76
VMXNET3_INPUT_N_ERROR
@ VMXNET3_INPUT_N_ERROR
Definition: input.c:41
VLIB_NODE_FLAG_TRACE_SUPPORTED
#define VLIB_NODE_FLAG_TRACE_SUPPORTED
Definition: node.h:295
foreach_vmxnet3_input_error
#define foreach_vmxnet3_input_error
Definition: input.c:29
format_vmxnet3_input_trace
format_function_t format_vmxnet3_input_trace
Definition: vmxnet3.h:633
vmxnet3_input_error_strings
static __clib_unused char * vmxnet3_input_error_strings[]
Definition: input.c:44