FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
nsim_input.c File Reference
+ Include dependency graph for nsim_input.c:

Go to the source code of this file.

Data Structures

struct  nsim_tx_trace_t
 

Macros

#define foreach_nsim_tx_error
 

Enumerations

enum  nsim_tx_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_tx_trace (u8 *s, va_list *args)
 
static uword nsim_input_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *f, int is_trace)
 
VLIB_NODE_FN() nsim_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

static char * nsim_tx_error_strings []
 
vlib_node_registration_t nsim_input_node
 (constructor) VLIB_REGISTER_NODE (nsim_input_node) More...
 

Macro Definition Documentation

◆ foreach_nsim_tx_error

#define foreach_nsim_tx_error
Value:
_(TX, "Packets transmitted") \
_(DROPPED, "No buffer drops")

Definition at line 45 of file nsim_input.c.

Enumeration Type Documentation

◆ nsim_next_t

Enumerator
NSIM_NEXT_DROP 
NSIM_N_NEXT 
NSIM_NEXT_DROP 
NSIM_N_NEXT 

Definition at line 65 of file nsim_input.c.

◆ nsim_tx_error_t

Enumerator
NSIM_N_ERROR 

Definition at line 49 of file nsim_input.c.

Function Documentation

◆ format_nsim_tx_trace()

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

Definition at line 33 of file nsim_input.c.

+ Here is the call graph for this function:

◆ nsim_input_inline()

static uword nsim_input_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t f,
int  is_trace 
)
inlinestatic

Definition at line 72 of file nsim_input.c.

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

◆ nsim_input_node()

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

Definition at line 202 of file nsim_input.c.

+ Here is the call graph for this function:

Variable Documentation

◆ nsim_input_node

vlib_node_registration_t nsim_input_node
Initial value:
=
{
.name = "nsim-wheel",
.state = VLIB_NODE_STATE_DISABLED,
.format_trace = format_nsim_tx_trace,
.n_errors = NSIM_N_ERROR,
.error_strings = nsim_tx_error_strings,
}
static char * nsim_tx_error_strings[]
Definition: nsim_input.c:58
static u8 * format_nsim_tx_trace(u8 *s, va_list *args)
Definition: nsim_input.c:33

(constructor) VLIB_REGISTER_NODE (nsim_input_node)

Definition at line 214 of file nsim_input.c.

◆ nsim_tx_error_strings

char* nsim_tx_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_nsim_tx_error
Definition: nsim_input.c:45

Definition at line 58 of file nsim_input.c.