FD.io VPP  v18.07-rc0-415-g6c78436
Vector Packet Processing
gbp_policy.c File Reference
+ Include dependency graph for gbp_policy.c:

Go to the source code of this file.

Data Structures

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

Macros

#define foreach_gbp_policy   _(DENY, "deny")
 

Typedefs

typedef struct gbp_policy_main_t_ gbp_policy_main_t
 Grouping of global data for the GBP source EPG classification feature. More...
 
typedef struct gbp_policy_trace_t_ gbp_policy_trace_t
 per-packet trace data More...
 

Enumerations

enum  gbp_policy_error_t { GBP_POLICY_N_ERROR }
 
enum  gbp_policy_next_t { GBP_POLICY_N_NEXT, GBP_POLICY_DROP, GBP_POLICY_N_NEXT }
 

Functions

static uword gbp_policy (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static u8format_gbp_policy_trace (u8 *s, va_list *args)
 
 VLIB_NODE_FUNCTION_MULTIARCH (gbp_policy_node, gbp_policy)
 
static clib_error_tgbp_policy_init (vlib_main_t *vm)
 

Variables

static gbp_policy_main_t gbp_policy_main
 
static char * gbp_policy_error_strings []
 
vlib_node_registration_t gbp_policy_node
 (constructor) VLIB_REGISTER_NODE (gbp_policy_node) More...
 

Macro Definition Documentation

#define foreach_gbp_policy   _(DENY, "deny")

Definition at line 31 of file gbp_policy.c.

Typedef Documentation

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

per-packet trace data

Enumeration Type Documentation

Enumerator
GBP_POLICY_N_ERROR 

Definition at line 34 of file gbp_policy.c.

Enumerator
GBP_POLICY_N_NEXT 
GBP_POLICY_DROP 
GBP_POLICY_N_NEXT 

Definition at line 48 of file gbp_policy.c.

Function Documentation

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

Definition at line 173 of file gbp_policy.c.

+ Here is the call graph for this function:

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

Definition at line 68 of file gbp_policy.c.

+ Here is the call graph for this function:

static clib_error_t* gbp_policy_init ( vlib_main_t vm)
static

Definition at line 209 of file gbp_policy.c.

+ Here is the call graph for this function:

VLIB_NODE_FUNCTION_MULTIARCH ( gbp_policy_node  ,
gbp_policy   
)

Variable Documentation

char* gbp_policy_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_gbp_policy
Definition: gbp_policy.c:31

Definition at line 42 of file gbp_policy.c.

gbp_policy_main_t gbp_policy_main
static

Definition at line 29 of file gbp_policy.c.

vlib_node_registration_t gbp_policy_node
Initial value:
= {
.function = gbp_policy,
.name = "gbp-policy",
.vector_size = sizeof (u32),
.format_trace = format_gbp_policy_trace,
.error_strings = gbp_policy_error_strings,
.n_next_nodes = GBP_POLICY_N_NEXT,
.next_nodes = {
[GBP_POLICY_NEXT_DENY] = "error-drop",
},
}
static uword gbp_policy(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: gbp_policy.c:68
static char * gbp_policy_error_strings[]
Definition: gbp_policy.c:42
unsigned int u32
Definition: types.h:88
#define ARRAY_LEN(x)
Definition: clib.h:59
static u8 * format_gbp_policy_trace(u8 *s, va_list *args)
Definition: gbp_policy.c:173

(constructor) VLIB_REGISTER_NODE (gbp_policy_node)

Definition at line 187 of file gbp_policy.c.