FD.io VPP  v18.07-rc0-415-g6c78436
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

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

Definition at line 31 of file gbp_fwd.c.

Typedef Documentation

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

per-packet trace data

Enumeration Type Documentation

Enumerator
GBP_FWD_N_ERROR 

Definition at line 35 of file gbp_fwd.c.

Enumerator
GBP_FWD_N_NEXT 
GBP_FWD_DROP 
GBP_FWD_FWD 
GBP_FWD_N_NEXT 

Definition at line 49 of file gbp_fwd.c.

Function Documentation

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

Definition at line 138 of file gbp_fwd.c.

+ Here is the call graph for this function:

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

Definition at line 68 of file gbp_fwd.c.

+ Here is the call graph for this function:

static clib_error_t* gbp_fwd_init ( vlib_main_t vm)
static

Definition at line 173 of file gbp_fwd.c.

+ Here is the call graph for this function:

VLIB_NODE_FUNCTION_MULTIARCH ( gbp_fwd_node  ,
gbp_fwd   
)

Variable Documentation

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

Definition at line 43 of file gbp_fwd.c.

gbp_fwd_main_t gbp_fwd_main
static

Definition at line 29 of file gbp_fwd.c.

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:43
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:68
#define ARRAY_LEN(x)
Definition: clib.h:59
static u8 * format_gbp_fwd_trace(u8 *s, va_list *args)
Definition: gbp_fwd.c:138

(constructor) VLIB_REGISTER_NODE (gbp_fwd_node)

Definition at line 150 of file gbp_fwd.c.