FD.io VPP  v18.10-34-gcce845e
Vector Packet Processing
node.c File Reference
+ Include dependency graph for node.c:

Go to the source code of this file.

Data Structures

struct  nsim_trace_t
 

Macros

#define foreach_nsim_error
 

Enumerations

enum  nsim_error_t { NSIM_N_ERROR }
 
enum  nsim_next_t { NSIM_NEXT_DROP, NSIM_N_NEXT, NSIM_NEXT_DROP, NSIM_N_NEXT }
 

Functions

static u8format_nsim_trace (u8 *s, va_list *args)
 
static uword nsim_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_trace)
 
VLIB_NODE_FN() nsim_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

vlib_node_registration_t nsim_node
 (constructor) VLIB_REGISTER_NODE (nsim_node) More...
 
static char * nsim_error_strings []
 

Macro Definition Documentation

#define foreach_nsim_error
Value:
_(BUFFERED, "Packets buffered") \
_(DROPPED, "Packets dropped due to lack of space")

Definition at line 52 of file node.c.

Enumeration Type Documentation

Enumerator
NSIM_N_ERROR 

Definition at line 56 of file node.c.

Enumerator
NSIM_NEXT_DROP 
NSIM_N_NEXT 
NSIM_NEXT_DROP 
NSIM_N_NEXT 

Definition at line 72 of file node.c.

Function Documentation

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

Definition at line 34 of file node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword nsim_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  is_trace 
)
inlinestatic

Definition at line 79 of file node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 152 of file node.c.

+ Here is the call graph for this function:

Variable Documentation

char* nsim_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_nsim_error
Definition: node.c:52

Definition at line 65 of file node.c.

Initial value:
=
{
.name = "nsim",
.vector_size = sizeof (u32),
.format_trace = format_nsim_trace,
.error_strings = nsim_error_strings,
.n_next_nodes = NSIM_N_NEXT,
.next_nodes = {
[NSIM_NEXT_DROP] = "error-drop",
},
}
unsigned int u32
Definition: types.h:88
static char * nsim_error_strings[]
Definition: node.c:65
#define ARRAY_LEN(x)
Definition: clib.h:61
static u8 * format_nsim_trace(u8 *s, va_list *args)
Definition: node.c:34

(constructor) VLIB_REGISTER_NODE (nsim_node)

Definition at line 49 of file node.c.