FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
p2p_ethernet_input.c File Reference
+ Include dependency graph for p2p_ethernet_input.c:

Go to the source code of this file.

Macros

#define foreach_p2p_ethernet_error   _(HITS, "P2P ethernet incoming packets processed")
 

Enumerations

enum  p2p_ethernet_error_t { P2PE_N_ERROR }
 

Functions

static u8format_p2p_ethernet_trace (u8 *s, va_list *args)
 
VLIB_NODE_FN() p2p_ethernet_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

vlib_node_registration_t p2p_ethernet_input_node
 (constructor) VLIB_REGISTER_NODE (p2p_ethernet_input_node) More...
 
static char * p2p_ethernet_error_strings []
 

Macro Definition Documentation

◆ foreach_p2p_ethernet_error

#define foreach_p2p_ethernet_error   _(HITS, "P2P ethernet incoming packets processed")

Definition at line 45 of file p2p_ethernet_input.c.

Enumeration Type Documentation

◆ p2p_ethernet_error_t

Enumerator
P2PE_N_ERROR 

Definition at line 48 of file p2p_ethernet_input.c.

Function Documentation

◆ format_p2p_ethernet_trace()

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

Definition at line 31 of file p2p_ethernet_input.c.

◆ p2p_ethernet_input_node()

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

Definition at line 62 of file p2p_ethernet_input.c.

+ Here is the call graph for this function:

Variable Documentation

◆ p2p_ethernet_error_strings

char* p2p_ethernet_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}

Definition at line 56 of file p2p_ethernet_input.c.

◆ p2p_ethernet_input_node

vlib_node_registration_t p2p_ethernet_input_node
Initial value:
= {
.name = "p2p-ethernet-input",
.vector_size = sizeof (u32),
.format_trace = format_p2p_ethernet_trace,
.error_strings = p2p_ethernet_error_strings,
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}

(constructor) VLIB_REGISTER_NODE (p2p_ethernet_input_node)

Definition at line 239 of file p2p_ethernet_input.c.

VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
format_p2p_ethernet_trace
static u8 * format_p2p_ethernet_trace(u8 *s, va_list *args)
Definition: p2p_ethernet_input.c:31
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
VLIB_NODE_FLAG_TRACE_SUPPORTED
#define VLIB_NODE_FLAG_TRACE_SUPPORTED
Definition: node.h:295
u32
unsigned int u32
Definition: types.h:88
p2p_ethernet_error_strings
static char * p2p_ethernet_error_strings[]
Definition: p2p_ethernet_input.c:56
foreach_p2p_ethernet_error
#define foreach_p2p_ethernet_error
Definition: p2p_ethernet_input.c:45
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123
flags
vl_api_wireguard_peer_flags_t flags
Definition: wireguard.api:105