FD.io VPP  v18.07-rc0-415-g6c78436
Vector Packet Processing
node.c File Reference
+ Include dependency graph for node.c:

Go to the source code of this file.

Data Structures

struct  mactime_trace_t
 

Macros

#define foreach_mactime_error
 

Enumerations

enum  mactime_error_t { MACTIME_N_ERROR }
 
enum  mactime_next_t { MACTIME_NEXT_DROP, MACTIME_NEXT_ETHERNET_INPUT, MACTIME_N_NEXT }
 

Functions

static u8format_mactime_trace (u8 *s, va_list *args)
 
static uword mactime_node_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_tx)
 
static uword mactime_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword mactime_tx_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

vlib_node_registration_t mactime_node
 (constructor) VLIB_REGISTER_NODE (mactime_node) More...
 
vlib_node_registration_t mactime_tx_node
 (constructor) VLIB_REGISTER_NODE (mactime_tx_node) More...
 
static char * mactime_error_strings []
 

Macro Definition Documentation

#define foreach_mactime_error
Value:
_(DROP, "Dropped packets") \
_(OK, "Permitted packets")
DROP
Definition: error.def:41

Definition at line 34 of file node.c.

Enumeration Type Documentation

Enumerator
MACTIME_N_ERROR 

Definition at line 38 of file node.c.

Enumerator
MACTIME_NEXT_DROP 
MACTIME_NEXT_ETHERNET_INPUT 
MACTIME_N_NEXT 

Definition at line 52 of file node.c.

Function Documentation

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

Definition at line 61 of file node.c.

+ Here is the call graph for this function:

static uword mactime_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 275 of file node.c.

+ Here is the call graph for this function:

static uword mactime_node_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  is_tx 
)
static

Definition at line 75 of file node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword mactime_tx_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 305 of file node.c.

+ Here is the call graph for this function:

Variable Documentation

char* mactime_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_mactime_error
Definition: node.c:34

Definition at line 46 of file node.c.

Initial value:
=
{
.function = mactime_node_fn,
.name = "mactime",
.vector_size = sizeof (u32),
.format_trace = format_mactime_trace,
.error_strings = mactime_error_strings,
.n_next_nodes = MACTIME_N_NEXT,
.next_nodes =
{
[MACTIME_NEXT_ETHERNET_INPUT] = "ethernet-input",
[MACTIME_NEXT_DROP] = "error-drop",
},
}
static char * mactime_error_strings[]
Definition: node.c:46
unsigned int u32
Definition: types.h:88
#define ARRAY_LEN(x)
Definition: clib.h:59
static u8 * format_mactime_trace(u8 *s, va_list *args)
Definition: node.c:61
static uword mactime_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node.c:275

(constructor) VLIB_REGISTER_NODE (mactime_node)

Definition at line 31 of file node.c.

vlib_node_registration_t mactime_tx_node
Initial value:
=
{
.function = mactime_tx_node_fn,
.name = "mactime-tx",
.vector_size = sizeof (u32),
.format_trace = format_mactime_trace,
.error_strings = mactime_error_strings,
.n_next_nodes = MACTIME_N_NEXT,
.next_nodes =
{
[MACTIME_NEXT_DROP] = "error-drop",
[MACTIME_NEXT_ETHERNET_INPUT] = "ethernet-input",
},
}
static char * mactime_error_strings[]
Definition: node.c:46
unsigned int u32
Definition: types.h:88
static uword mactime_tx_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node.c:305
#define ARRAY_LEN(x)
Definition: clib.h:59
static u8 * format_mactime_trace(u8 *s, va_list *args)
Definition: node.c:61

(constructor) VLIB_REGISTER_NODE (mactime_tx_node)

Definition at line 32 of file node.c.