FD.io VPP  v19.04-6-g6f05f72
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") \
_(LOSS, "Network loss simulation drop packets")

Definition at line 54 of file node.c.

Enumeration Type Documentation

Enumerator
NSIM_N_ERROR 

Definition at line 59 of file node.c.

Enumerator
NSIM_NEXT_DROP 
NSIM_N_NEXT 
NSIM_NEXT_DROP 
NSIM_N_NEXT 

Definition at line 75 of file node.c.

Function Documentation

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

Definition at line 35 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 82 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 171 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:54

Definition at line 68 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:68
#define ARRAY_LEN(x)
Definition: clib.h:62
static u8 * format_nsim_trace(u8 *s, va_list *args)
Definition: node.c:35

(constructor) VLIB_REGISTER_NODE (nsim_node)

Definition at line 51 of file node.c.