FD.io VPP  v21.01.1
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 43 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 62 of file nsim_input.c.

◆ nsim_tx_error_t

Enumerator
NSIM_TX_N_ERROR 

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

◆ 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 69 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 119 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:55
static u8 * format_nsim_tx_trace(u8 *s, va_list *args)
Definition: nsim_input.c:32

(constructor) VLIB_REGISTER_NODE (nsim_input_node)

Definition at line 131 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:43

Definition at line 55 of file nsim_input.c.