FD.io VPP  v21.01.1
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

◆ foreach_mactime_error

#define foreach_mactime_error
Value:
_(OK, "Permitted packets") \
_(STATIC_DROP, "Static drop packets") \
_(RANGE_DROP, "Range drop packets") \
_(QUOTA_DROP, "Data quota drop packets") \
_(DROP_10001, "Dropped UDP DST-port 10001")

Definition at line 34 of file node.c.

Enumeration Type Documentation

◆ mactime_error_t

Enumerator
MACTIME_N_ERROR 

Definition at line 41 of file node.c.

◆ mactime_next_t

Enumerator
MACTIME_NEXT_DROP 
MACTIME_NEXT_ETHERNET_INPUT 
MACTIME_N_NEXT 

Definition at line 55 of file node.c.

Function Documentation

◆ format_mactime_trace()

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

Definition at line 64 of file node.c.

+ Here is the call graph for this function:

◆ mactime_node_fn()

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

Definition at line 346 of file node.c.

+ Here is the call graph for this function:

◆ mactime_node_inline()

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 78 of file node.c.

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

◆ mactime_tx_node_fn()

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

Definition at line 376 of file node.c.

+ Here is the call graph for this function:

Variable Documentation

◆ mactime_error_strings

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

Definition at line 49 of file node.c.

◆ mactime_node

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:49
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static uword mactime_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node.c:346
#define ARRAY_LEN(x)
Definition: clib.h:67
static u8 * format_mactime_trace(u8 *s, va_list *args)
Definition: node.c:64

(constructor) VLIB_REGISTER_NODE (mactime_node)

Definition at line 31 of file node.c.

◆ mactime_tx_node

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:49
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
#define ARRAY_LEN(x)
Definition: clib.h:67
static uword mactime_tx_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node.c:376
static u8 * format_mactime_trace(u8 *s, va_list *args)
Definition: node.c:64

(constructor) VLIB_REGISTER_NODE (mactime_tx_node)

Definition at line 32 of file node.c.