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

Go to the source code of this file.

Data Structures

struct  netmap_input_trace_t
 

Macros

#define foreach_netmap_input_error
 

Enumerations

enum  netmap_input_error_t { NETMAP_INPUT_N_ERROR }
 

Functions

static u8format_netmap_input_trace (u8 *s, va_list *args)
 
static void buffer_add_to_chain (vlib_main_t *vm, u32 bi, u32 first_bi, u32 prev_bi)
 
static uword netmap_device_input_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, netmap_if_t *nif)
 
VLIB_NODE_FN() netmap_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

static char * netmap_input_error_strings []
 
vlib_node_registration_t netmap_input_node
 (constructor) VLIB_REGISTER_NODE (netmap_input_node) More...
 

Macro Definition Documentation

◆ foreach_netmap_input_error

#define foreach_netmap_input_error

Definition at line 31 of file node.c.

Enumeration Type Documentation

◆ netmap_input_error_t

Enumerator
NETMAP_INPUT_N_ERROR 

Definition at line 33 of file node.c.

Function Documentation

◆ buffer_add_to_chain()

static void buffer_add_to_chain ( vlib_main_t vm,
u32  bi,
u32  first_bi,
u32  prev_bi 
)
inlinestatic

Definition at line 71 of file node.c.

+ Here is the call graph for this function:

◆ format_netmap_input_trace()

static u8* format_netmap_input_trace ( u8 s,
va_list *  args 
)
static

Definition at line 55 of file node.c.

+ Here is the call graph for this function:

◆ netmap_device_input_fn()

static uword netmap_device_input_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
netmap_if_t nif 
)
inlinestatic

Definition at line 89 of file node.c.

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

◆ netmap_input_node()

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

Definition at line 254 of file node.c.

+ Here is the call graph for this function:

Variable Documentation

◆ netmap_input_error_strings

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

Definition at line 41 of file node.c.

◆ netmap_input_node

vlib_node_registration_t netmap_input_node
Initial value:
= {
.name = "netmap-input",
.sibling_of = "device-input",
.format_trace = format_netmap_input_trace,
.state = VLIB_NODE_STATE_INTERRUPT,
.n_errors = NETMAP_INPUT_N_ERROR,
.error_strings = netmap_input_error_strings,
}

(constructor) VLIB_REGISTER_NODE (netmap_input_node)

Definition at line 277 of file node.c.

netmap_input_error_strings
static char * netmap_input_error_strings[]
Definition: node.c:41
VLIB_NODE_TYPE_INPUT
@ VLIB_NODE_TYPE_INPUT
Definition: node.h:76
VLIB_NODE_FLAG_TRACE_SUPPORTED
#define VLIB_NODE_FLAG_TRACE_SUPPORTED
Definition: node.h:295
NETMAP_INPUT_N_ERROR
@ NETMAP_INPUT_N_ERROR
Definition: node.c:38
foreach_netmap_input_error
#define foreach_netmap_input_error
Definition: node.c:31
format_netmap_input_trace
static u8 * format_netmap_input_trace(u8 *s, va_list *args)
Definition: node.c:55