FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
gbp_fwd.c File Reference
+ Include dependency graph for gbp_fwd.c:

Go to the source code of this file.

Data Structures

struct  gbp_fwd_main_t_
 Grouping of global data for the GBP source EPG classification feature. More...
 
struct  gbp_fwd_trace_t_
 per-packet trace data More...
 

Macros

#define foreach_gbp_fwd
 

Typedefs

typedef struct gbp_fwd_main_t_ gbp_fwd_main_t
 Grouping of global data for the GBP source EPG classification feature. More...
 
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_N_NEXT, GBP_FWD_DROP, GBP_FWD_FWD, GBP_FWD_N_NEXT }
 

Functions

static uword gbp_fwd (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static u8format_gbp_fwd_trace (u8 *s, va_list *args)
 
 VLIB_NODE_FUNCTION_MULTIARCH (gbp_fwd_node, gbp_fwd)
 
static clib_error_tgbp_fwd_init (vlib_main_t *vm)
 

Variables

static gbp_fwd_main_t gbp_fwd_main
 
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 32 of file gbp_fwd.c.

Typedef Documentation

◆ gbp_fwd_main_t

Grouping of global data for the GBP source EPG classification feature.

◆ gbp_fwd_trace_t

per-packet trace data

Enumeration Type Documentation

◆ gbp_fwd_error_t

Enumerator
GBP_FWD_N_ERROR 

Definition at line 36 of file gbp_fwd.c.

◆ gbp_fwd_next_t

Enumerator
GBP_FWD_N_NEXT 
GBP_FWD_DROP 
GBP_FWD_FWD 
GBP_FWD_N_NEXT 

Definition at line 50 of file gbp_fwd.c.

Function Documentation

◆ format_gbp_fwd_trace()

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

Definition at line 139 of file gbp_fwd.c.

+ Here is the call graph for this function:

◆ gbp_fwd()

static uword gbp_fwd ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 69 of file gbp_fwd.c.

+ Here is the call graph for this function:

◆ gbp_fwd_init()

static clib_error_t* gbp_fwd_init ( vlib_main_t vm)
static

Definition at line 174 of file gbp_fwd.c.

+ Here is the call graph for this function:

◆ VLIB_NODE_FUNCTION_MULTIARCH()

VLIB_NODE_FUNCTION_MULTIARCH ( gbp_fwd_node  ,
gbp_fwd   
)

Variable Documentation

◆ gbp_fwd_error_strings

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

Definition at line 44 of file gbp_fwd.c.

◆ gbp_fwd_main

gbp_fwd_main_t gbp_fwd_main
static

Definition at line 30 of file gbp_fwd.c.

◆ gbp_fwd_node

Initial value:
= {
.function = gbp_fwd,
.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.c:44
unsigned int u32
Definition: types.h:88
static uword gbp_fwd(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: gbp_fwd.c:69
#define ARRAY_LEN(x)
Definition: clib.h:62
static u8 * format_gbp_fwd_trace(u8 *s, va_list *args)
Definition: gbp_fwd.c:139

(constructor) VLIB_REGISTER_NODE (gbp_fwd_node)

Definition at line 151 of file gbp_fwd.c.