FD.io VPP  v20.09-64-g4f7b92f0a
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   _(TRANSMITTED, "Packets transmitted")
 

Enumerations

enum  nsim_tx_error_t { NSIM_TX_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   _(TRANSMITTED, "Packets transmitted")

Definition at line 44 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 63 of file nsim_input.c.

◆ nsim_tx_error_t

Enumerator
NSIM_TX_N_ERROR 

Definition at line 47 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 70 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 120 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_TX_N_ERROR,
.error_strings = nsim_tx_error_strings,
}
static char * nsim_tx_error_strings[]
Definition: nsim_input.c:56
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 132 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:44

Definition at line 56 of file nsim_input.c.