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  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.

+ 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 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)
}
#define foreach_oddbuf_error
Definition: node.c:48

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",
},
}
static u8 * format_oddbuf_trace(u8 *s, va_list *args)
Definition: node.c:33
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 char * oddbuf_error_strings[]
Definition: node.c:60

(constructor) VLIB_REGISTER_NODE (oddbuf_node)

Definition at line 44 of file node.c.