FD.io VPP  v17.10-9-gd594711
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.


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


enum  p2p_ethernet_error_t { P2PE_N_ERROR }


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


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

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

Definition at line 45 of file p2p_ethernet_input.c.

Enumeration Type Documentation


Definition at line 48 of file p2p_ethernet_input.c.

Function Documentation

u8* format_p2p_ethernet_trace ( u8 s,
va_list *  args 

Definition at line 31 of file p2p_ethernet_input.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword p2p_ethernet_input_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 

Definition at line 63 of file p2p_ethernet_input.c.

+ Here is the call graph for this function:

Variable Documentation

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

Definition at line 56 of file p2p_ethernet_input.c.

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",
u8 * format_p2p_ethernet_trace(u8 *s, va_list *args)
static char * p2p_ethernet_error_strings[]
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword p2p_ethernet_input_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)

(constructor) VLIB_REGISTER_NODE (p2p_ethernet_input_node)

Definition at line 27 of file p2p_ethernet_input.c.