FD.io VPP  v20.05.1-6-gf53edbc3b
Vector Packet Processing
node.c File Reference
+ Include dependency graph for node.c:

Go to the source code of this file.

Data Structures

struct  oddbuf_trace_t
 

Macros

#define foreach_oddbuf_error   _(SWAPPED, "Mac swap packets processed")
 

Enumerations

enum  oddbuf_error_t { ODDBUF_N_ERROR }
 
enum  oddbuf_next_t { ODDBUF_NEXT_DROP, ODDBUF_N_NEXT }
 

Functions

static u8format_oddbuf_trace (u8 *s, va_list *args)
 
static uword oddbuf_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_ip4, int is_trace)
 
VLIB_NODE_FN() oddbuf_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

vlib_node_registration_t oddbuf_node
 (constructor) VLIB_REGISTER_NODE (oddbuf_node) More...
 
static char * oddbuf_error_strings []
 

Macro Definition Documentation

◆ foreach_oddbuf_error

#define foreach_oddbuf_error   _(SWAPPED, "Mac swap packets processed")

Definition at line 49 of file node.c.

Enumeration Type Documentation

◆ oddbuf_error_t

Enumerator
ODDBUF_N_ERROR 

Definition at line 52 of file node.c.

◆ oddbuf_next_t

Enumerator
ODDBUF_NEXT_DROP 
ODDBUF_N_NEXT 

Definition at line 68 of file node.c.

Function Documentation

◆ format_oddbuf_trace()

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

Definition at line 34 of file node.c.

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

◆ oddbuf_inline()

static uword oddbuf_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  is_ip4,
int  is_trace 
)
inlinestatic

Definition at line 76 of file node.c.

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

◆ oddbuf_node()

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

Definition at line 176 of file node.c.

+ Here is the call graph for this function:

Variable Documentation

◆ oddbuf_error_strings

char* oddbuf_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_oddbuf_error
Definition: node.c:49

Definition at line 61 of file node.c.

◆ oddbuf_node

Initial value:
=
{
.name = "oddbuf",
.vector_size = sizeof (u32),
.format_trace = format_oddbuf_trace,
.error_strings = oddbuf_error_strings,
.n_next_nodes = ODDBUF_N_NEXT,
.next_nodes = {
[ODDBUF_NEXT_DROP] = "error-drop",
},
}
static u8 * format_oddbuf_trace(u8 *s, va_list *args)
Definition: node.c:34
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:66
static char * oddbuf_error_strings[]
Definition: node.c:61

(constructor) VLIB_REGISTER_NODE (oddbuf_node)

Definition at line 45 of file node.c.