FD.io VPP  v21.10.1-2-g0a485f517
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 48 of file node.c.

Enumeration Type Documentation

◆ oddbuf_error_t

Enumerator
ODDBUF_N_ERROR 

Definition at line 51 of file node.c.

◆ oddbuf_next_t

Enumerator
ODDBUF_NEXT_DROP 
ODDBUF_N_NEXT 

Definition at line 67 of file node.c.

Function Documentation

◆ format_oddbuf_trace()

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

Definition at line 33 of file node.c.

◆ 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 75 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 175 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)
}

Definition at line 60 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",
},
}

(constructor) VLIB_REGISTER_NODE (oddbuf_node)

Definition at line 44 of file node.c.

VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
format_oddbuf_trace
static u8 * format_oddbuf_trace(u8 *s, va_list *args)
Definition: node.c:33
ODDBUF_N_NEXT
@ ODDBUF_N_NEXT
Definition: node.c:70
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
foreach_oddbuf_error
#define foreach_oddbuf_error
Definition: node.c:48
ODDBUF_NEXT_DROP
@ ODDBUF_NEXT_DROP
Definition: node.c:69
oddbuf_error_strings
static char * oddbuf_error_strings[]
Definition: node.c:60
u32
unsigned int u32
Definition: types.h:88
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123