FD.io VPP  v18.10-34-gcce845e
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 28 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 22 of file gbp_classify.c.

Function Documentation

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

Definition at line 169 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 56 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 153 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 160 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 146 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 139 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 253 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:169
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:153

(constructor) VLIB_REGISTER_NODE (gbp_ip4_src_classify_node)

Definition at line 207 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:169
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:160

(constructor) VLIB_REGISTER_NODE (gbp_ip6_src_classify_node)

Definition at line 223 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:169
static uword gbp_null_classify(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: gbp_classify.c:146
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (gbp_null_classify_node)

Definition at line 181 of file gbp_classify.c.

gbp_src_classify_main_t gbp_src_classify_main
static

Definition at line 41 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:169
static uword gbp_src_classify(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: gbp_classify.c:139
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (gbp_src_classify_node)

Definition at line 194 of file gbp_classify.c.