FD.io VPP  v18.07.1-19-g511ce25
Vector Packet Processing
gbp_classify.c File Reference
+ Include dependency graph for gbp_classify.c:

Go to the source code of this file.

Data Structures

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

Macros

#define GBP_SRC_N_CLASSIFY   (GBP_SRC_CLASSIFY_PORT + 1)
 

Typedefs

typedef enum gbp_src_classify_type_t_ gbp_src_classify_type_t
 
typedef struct gbp_src_classify_main_t_ gbp_src_classify_main_t
 Grouping of global data for the GBP source EPG classification feature. More...
 
typedef struct gbp_classify_trace_t_ gbp_classify_trace_t
 per-packet trace data More...
 

Enumerations

enum  gbp_src_classify_type_t_ { GBP_SRC_CLASSIFY_NULL, GBP_SRC_CLASSIFY_PORT }
 

Functions

static uword gbp_classify_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, gbp_src_classify_type_t type, u8 is_l3)
 
static uword gbp_src_classify (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword gbp_null_classify (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword gbp_ip4_src_classify (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword gbp_ip6_src_classify (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static u8format_gbp_classify_trace (u8 *s, va_list *args)
 
 VLIB_NODE_FUNCTION_MULTIARCH (gbp_null_classify_node, gbp_null_classify)
 
 VLIB_NODE_FUNCTION_MULTIARCH (gbp_src_classify_node, gbp_src_classify)
 
 VLIB_NODE_FUNCTION_MULTIARCH (gbp_ip4_src_classify_node, gbp_ip4_src_classify)
 
 VLIB_NODE_FUNCTION_MULTIARCH (gbp_ip6_src_classify_node, gbp_ip6_src_classify)
 
 VNET_FEATURE_INIT (gbp_ip4_src_classify_feat_node, static)
 
 VNET_FEATURE_INIT (gbp_ip6_src_classify_feat_node, static)
 
static clib_error_tgbp_src_classify_init (vlib_main_t *vm)
 

Variables

static gbp_src_classify_main_t gbp_src_classify_main
 
vlib_node_registration_t gbp_null_classify_node
 (constructor) VLIB_REGISTER_NODE (gbp_null_classify_node) More...
 
vlib_node_registration_t gbp_src_classify_node
 (constructor) VLIB_REGISTER_NODE (gbp_src_classify_node) More...
 
vlib_node_registration_t gbp_ip4_src_classify_node
 (constructor) VLIB_REGISTER_NODE (gbp_ip4_src_classify_node) More...
 
vlib_node_registration_t gbp_ip6_src_classify_node
 (constructor) VLIB_REGISTER_NODE (gbp_ip6_src_classify_node) More...
 

Macro Definition Documentation

#define GBP_SRC_N_CLASSIFY   (GBP_SRC_CLASSIFY_PORT + 1)

Definition at line 26 of file gbp_classify.c.

Typedef Documentation

per-packet trace data

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

Enumeration Type Documentation

Enumerator
GBP_SRC_CLASSIFY_NULL 
GBP_SRC_CLASSIFY_PORT 

Definition at line 20 of file gbp_classify.c.

Function Documentation

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

Definition at line 165 of file gbp_classify.c.

+ Here is the call graph for this function:

static uword gbp_classify_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
gbp_src_classify_type_t  type,
u8  is_l3 
)
inlinestatic

Definition at line 54 of file gbp_classify.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 149 of file gbp_classify.c.

+ Here is the call graph for this function:

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

Definition at line 156 of file gbp_classify.c.

+ Here is the call graph for this function:

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

Definition at line 142 of file gbp_classify.c.

+ Here is the call graph for this function:

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

Definition at line 135 of file gbp_classify.c.

+ Here is the call graph for this function:

static clib_error_t* gbp_src_classify_init ( vlib_main_t vm)
static

Definition at line 249 of file gbp_classify.c.

+ Here is the call graph for this function:

VLIB_NODE_FUNCTION_MULTIARCH ( gbp_null_classify_node  ,
gbp_null_classify   
)
VLIB_NODE_FUNCTION_MULTIARCH ( gbp_src_classify_node  ,
gbp_src_classify   
)
VLIB_NODE_FUNCTION_MULTIARCH ( gbp_ip4_src_classify_node  ,
gbp_ip4_src_classify   
)
VLIB_NODE_FUNCTION_MULTIARCH ( gbp_ip6_src_classify_node  ,
gbp_ip6_src_classify   
)
VNET_FEATURE_INIT ( gbp_ip4_src_classify_feat_node  ,
static   
)
VNET_FEATURE_INIT ( gbp_ip6_src_classify_feat_node  ,
static   
)

Variable Documentation

vlib_node_registration_t gbp_ip4_src_classify_node
Initial value:
= {
.function = gbp_ip4_src_classify,
.name = "ip4-gbp-src-classify",
.vector_size = sizeof (u32),
.format_trace = format_gbp_classify_trace,
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "ip4-lookup"
},
}
static u8 * format_gbp_classify_trace(u8 *s, va_list *args)
Definition: gbp_classify.c:165
unsigned int u32
Definition: types.h:88
static uword gbp_ip4_src_classify(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: gbp_classify.c:149

(constructor) VLIB_REGISTER_NODE (gbp_ip4_src_classify_node)

Definition at line 203 of file gbp_classify.c.

vlib_node_registration_t gbp_ip6_src_classify_node
Initial value:
= {
.function = gbp_ip6_src_classify,
.name = "ip6-gbp-src-classify",
.vector_size = sizeof (u32),
.format_trace = format_gbp_classify_trace,
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "ip6-lookup"
},
}
static u8 * format_gbp_classify_trace(u8 *s, va_list *args)
Definition: gbp_classify.c:165
unsigned int u32
Definition: types.h:88
static uword gbp_ip6_src_classify(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: gbp_classify.c:156

(constructor) VLIB_REGISTER_NODE (gbp_ip6_src_classify_node)

Definition at line 219 of file gbp_classify.c.

vlib_node_registration_t gbp_null_classify_node
Initial value:
= {
.function = gbp_null_classify,
.name = "gbp-null-classify",
.vector_size = sizeof (u32),
.format_trace = format_gbp_classify_trace,
.n_errors = 0,
.n_next_nodes = 0,
}
static u8 * format_gbp_classify_trace(u8 *s, va_list *args)
Definition: gbp_classify.c:165
static uword gbp_null_classify(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: gbp_classify.c:142
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (gbp_null_classify_node)

Definition at line 177 of file gbp_classify.c.

gbp_src_classify_main_t gbp_src_classify_main
static

Definition at line 39 of file gbp_classify.c.

vlib_node_registration_t gbp_src_classify_node
Initial value:
= {
.function = gbp_src_classify,
.name = "gbp-src-classify",
.vector_size = sizeof (u32),
.format_trace = format_gbp_classify_trace,
.n_errors = 0,
.n_next_nodes = 0,
}
static u8 * format_gbp_classify_trace(u8 *s, va_list *args)
Definition: gbp_classify.c:165
static uword gbp_src_classify(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: gbp_classify.c:135
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (gbp_src_classify_node)

Definition at line 190 of file gbp_classify.c.