FD.io VPP  v16.06
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 }
 
enum  { NETMAP_INPUT_NEXT_DROP, NETMAP_INPUT_NEXT_ETHERNET_INPUT, NETMAP_INPUT_N_NEXT }
 

Functions

static u8format_netmap_input_trace (u8 *s, va_list *args)
 
always_inline void buffer_add_to_chain (vlib_main_t *vm, u32 bi, u32 first_bi, u32 prev_bi)
 
always_inline uword netmap_device_input_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u32 device_idx)
 
static uword netmap_input_fn (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

#define foreach_netmap_input_error

Definition at line 24 of file node.c.

Enumeration Type Documentation

anonymous enum
Enumerator
NETMAP_INPUT_NEXT_DROP 
NETMAP_INPUT_NEXT_ETHERNET_INPUT 
NETMAP_INPUT_N_NEXT 

Definition at line 39 of file node.c.

Enumerator
NETMAP_INPUT_N_ERROR 

Definition at line 26 of file node.c.

Function Documentation

always_inline void buffer_add_to_chain ( vlib_main_t vm,
u32  bi,
u32  first_bi,
u32  prev_bi 
)

Definition at line 67 of file node.c.

+ Here is the call graph for this function:

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

Definition at line 51 of file node.c.

+ Here is the call graph for this function:

always_inline uword netmap_device_input_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
u32  device_idx 
)

Definition at line 96 of file node.c.

+ Here is the call graph for this function:

static uword netmap_input_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 251 of file node.c.

Variable Documentation

char* netmap_input_error_strings[]
static
Initial value:
= {
#define _(n,s)
}
#define foreach_netmap_input_error
Definition: node.c:24

Definition at line 33 of file node.c.

vlib_node_registration_t netmap_input_node
Initial value:
= {
.function = netmap_input_fn,
.name = "netmap-input",
.format_trace = format_netmap_input_trace,
.state = VLIB_NODE_STATE_INTERRUPT,
.n_errors = NETMAP_INPUT_N_ERROR,
.error_strings = netmap_input_error_strings,
.n_next_nodes = NETMAP_INPUT_N_NEXT,
.next_nodes = {
[NETMAP_INPUT_NEXT_DROP] = "error-drop",
[NETMAP_INPUT_NEXT_ETHERNET_INPUT] = "ethernet-input",
},
}
static uword netmap_input_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node.c:251
static char * netmap_input_error_strings[]
Definition: node.c:33
static u8 * format_netmap_input_trace(u8 *s, va_list *args)
Definition: node.c:51

(constructor) VLIB_REGISTER_NODE (netmap_input_node)

Definition at line 269 of file node.c.