FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
gbp_fwd_node.c File Reference
+ Include dependency graph for gbp_fwd_node.c:

Go to the source code of this file.

Data Structures

struct  gbp_fwd_trace_t_
 per-packet trace data More...
 

Macros

#define foreach_gbp_fwd
 

Typedefs

typedef struct gbp_fwd_trace_t_ gbp_fwd_trace_t
 per-packet trace data More...
 

Enumerations

enum  gbp_fwd_error_t { GBP_FWD_N_ERROR }
 
enum  gbp_fwd_next_t { GBP_FWD_DROP, GBP_FWD_FWD, GBP_FWD_N_NEXT, GBP_FWD_N_NEXT }
 

Functions

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

Variables

static char * gbp_fwd_error_strings []
 
vlib_node_registration_t gbp_fwd_node
 (constructor) VLIB_REGISTER_NODE (gbp_fwd_node) More...
 

Macro Definition Documentation

◆ foreach_gbp_fwd

#define foreach_gbp_fwd
Value:
_(DROP, "drop") \
_(OUTPUT, "output")
DROP
Definition: error.def:41

Definition at line 19 of file gbp_fwd_node.c.

Typedef Documentation

◆ gbp_fwd_trace_t

per-packet trace data

Enumeration Type Documentation

◆ gbp_fwd_error_t

Enumerator
GBP_FWD_N_ERROR 

Definition at line 23 of file gbp_fwd_node.c.

◆ gbp_fwd_next_t

Enumerator
GBP_FWD_DROP 
GBP_FWD_FWD 
GBP_FWD_N_NEXT 
GBP_FWD_N_NEXT 

Definition at line 37 of file gbp_fwd_node.c.

Function Documentation

◆ format_gbp_fwd_trace()

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

Definition at line 127 of file gbp_fwd_node.c.

+ Here is the call graph for this function:

◆ gbp_fwd_node()

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

Definition at line 55 of file gbp_fwd_node.c.

+ Here is the call graph for this function:

Variable Documentation

◆ gbp_fwd_error_strings

char* gbp_fwd_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_gbp_fwd
Definition: gbp_fwd_node.c:19

Definition at line 31 of file gbp_fwd_node.c.

◆ gbp_fwd_node

Initial value:
= {
.name = "gbp-fwd",
.vector_size = sizeof (u32),
.format_trace = format_gbp_fwd_trace,
.error_strings = gbp_fwd_error_strings,
.n_next_nodes = GBP_FWD_N_NEXT,
.next_nodes = {
[GBP_FWD_NEXT_DROP] = "error-drop",
[GBP_FWD_NEXT_OUTPUT] = "l2-output",
},
}
static char * gbp_fwd_error_strings[]
Definition: gbp_fwd_node.c:31
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static u8 * format_gbp_fwd_trace(u8 *s, va_list *args)
Definition: gbp_fwd_node.c:127
#define ARRAY_LEN(x)
Definition: clib.h:63

(constructor) VLIB_REGISTER_NODE (gbp_fwd_node)

Definition at line 139 of file gbp_fwd_node.c.