FD.io VPP  v19.08-27-gf4dcae4
Vector Packet Processing
gbp_classify_node.c File Reference
+ Include dependency graph for gbp_classify_node.c:

Go to the source code of this file.

Data Structures

struct  gbp_classify_trace_t_
 per-packet trace data More...
 
struct  gbp_lpm_classify_trace_t_
 per-packet trace data More...
 

Typedefs

typedef struct gbp_classify_trace_t_ gbp_classify_trace_t
 per-packet trace data More...
 
typedef enum gbp_lpm_classify_next_t_ gbp_lpm_classify_next_t
 
typedef struct gbp_lpm_classify_trace_t_ gbp_lpm_classify_trace_t
 per-packet trace data More...
 

Enumerations

enum  gbp_lpm_classify_next_t_ { GPB_LPM_CLASSIFY_DROP }
 
enum  gbp_lpm_type { GBP_LPM_RECIRC, GBP_LPM_EPG, GBP_LPM_ANON }
 

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, dpo_proto_t dproto)
 
VLIB_NODE_FN() gbp_src_classify_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() gbp_null_classify_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() gbp_ip4_src_classify_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() gbp_ip6_src_classify_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static u8format_gbp_classify_trace (u8 *s, va_list *args)
 
 VNET_FEATURE_INIT (gbp_ip4_src_classify_feat_node, static)
 
 VNET_FEATURE_INIT (gbp_ip6_src_classify_feat_node, static)
 
static u8format_gbp_lpm_classify_trace (u8 *s, va_list *args)
 
static uword gbp_lpm_classify_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, const dpo_proto_t dproto, const enum gbp_lpm_type type)
 
VLIB_NODE_FN() gbp_ip4_lpm_classify_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() gbp_ip6_lpm_classify_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() gbp_l2_lpm_classify_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() gbp_l2_lpm_anon_classify_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VNET_FEATURE_INIT (gbp_ip4_lpm_classify_feat_node, static)
 
 VNET_FEATURE_INIT (gbp_ip6_lpm_classify_feat_node, static)
 

Variables

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...
 
vlib_node_registration_t gbp_ip4_lpm_classify_node
 (constructor) VLIB_REGISTER_NODE (gbp_ip4_lpm_classify_node) More...
 
vlib_node_registration_t gbp_ip6_lpm_classify_node
 (constructor) VLIB_REGISTER_NODE (gbp_ip6_lpm_classify_node) More...
 
vlib_node_registration_t gbp_l2_lpm_classify_node
 (constructor) VLIB_REGISTER_NODE (gbp_l2_lpm_classify_node) More...
 
vlib_node_registration_t gbp_l2_lpm_anon_classify_node
 (constructor) VLIB_REGISTER_NODE (gbp_l2_lpm_anon_classify_node) More...
 

Typedef Documentation

per-packet trace data

per-packet trace data

Enumeration Type Documentation

Enumerator
GPB_LPM_CLASSIFY_DROP 

Definition at line 277 of file gbp_classify_node.c.

Enumerator
GBP_LPM_RECIRC 
GBP_LPM_EPG 
GBP_LPM_ANON 

Definition at line 306 of file gbp_classify_node.c.

Function Documentation

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

Definition at line 204 of file gbp_classify_node.c.

+ Here is the call graph for this function:

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

Definition at line 294 of file gbp_classify_node.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,
dpo_proto_t  dproto 
)
inlinestatic

Definition at line 44 of file gbp_classify_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VLIB_NODE_FN() gbp_ip4_lpm_classify_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 522 of file gbp_classify_node.c.

+ Here is the call graph for this function:

VLIB_NODE_FN() gbp_ip4_src_classify_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 185 of file gbp_classify_node.c.

+ Here is the call graph for this function:

VLIB_NODE_FN() gbp_ip6_lpm_classify_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 530 of file gbp_classify_node.c.

+ Here is the call graph for this function:

VLIB_NODE_FN() gbp_ip6_src_classify_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 193 of file gbp_classify_node.c.

+ Here is the call graph for this function:

VLIB_NODE_FN() gbp_l2_lpm_anon_classify_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 546 of file gbp_classify_node.c.

+ Here is the call graph for this function:

VLIB_NODE_FN() gbp_l2_lpm_classify_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 538 of file gbp_classify_node.c.

+ Here is the call graph for this function:

static uword gbp_lpm_classify_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
const dpo_proto_t  dproto,
const enum gbp_lpm_type  type 
)
inlinestatic

Definition at line 317 of file gbp_classify_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VLIB_NODE_FN() gbp_null_classify_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 177 of file gbp_classify_node.c.

+ Here is the call graph for this function:

VLIB_NODE_FN() gbp_src_classify_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 169 of file gbp_classify_node.c.

+ Here is the call graph for this function:

VNET_FEATURE_INIT ( gbp_ip4_src_classify_feat_node  ,
static   
)
VNET_FEATURE_INIT ( gbp_ip6_src_classify_feat_node  ,
static   
)
VNET_FEATURE_INIT ( gbp_ip4_lpm_classify_feat_node  ,
static   
)
VNET_FEATURE_INIT ( gbp_ip6_lpm_classify_feat_node  ,
static   
)

Variable Documentation

vlib_node_registration_t gbp_ip4_lpm_classify_node
Initial value:
= {
.name = "ip4-gbp-lpm-classify",
.vector_size = sizeof (u32),
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[GPB_LPM_CLASSIFY_DROP] = "ip4-drop"
},
}
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static u8 * format_gbp_lpm_classify_trace(u8 *s, va_list *args)

(constructor) VLIB_REGISTER_NODE (gbp_ip4_lpm_classify_node)

Definition at line 555 of file gbp_classify_node.c.

vlib_node_registration_t gbp_ip4_src_classify_node
Initial value:
= {
.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"
},
}
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static u8 * format_gbp_classify_trace(u8 *s, va_list *args)

(constructor) VLIB_REGISTER_NODE (gbp_ip4_src_classify_node)

Definition at line 236 of file gbp_classify_node.c.

vlib_node_registration_t gbp_ip6_lpm_classify_node
Initial value:
= {
.name = "ip6-gbp-lpm-classify",
.vector_size = sizeof (u32),
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[GPB_LPM_CLASSIFY_DROP] = "ip6-drop"
},
}
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static u8 * format_gbp_lpm_classify_trace(u8 *s, va_list *args)

(constructor) VLIB_REGISTER_NODE (gbp_ip6_lpm_classify_node)

Definition at line 568 of file gbp_classify_node.c.

vlib_node_registration_t gbp_ip6_src_classify_node
Initial value:
= {
.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"
},
}
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static u8 * format_gbp_classify_trace(u8 *s, va_list *args)

(constructor) VLIB_REGISTER_NODE (gbp_ip6_src_classify_node)

Definition at line 249 of file gbp_classify_node.c.

vlib_node_registration_t gbp_l2_lpm_anon_classify_node
Initial value:
= {
.name = "l2-gbp-lpm-anon-classify",
.vector_size = sizeof (u32),
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[GPB_LPM_CLASSIFY_DROP] = "error-drop"
},
}
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static u8 * format_gbp_lpm_classify_trace(u8 *s, va_list *args)

(constructor) VLIB_REGISTER_NODE (gbp_l2_lpm_anon_classify_node)

Definition at line 594 of file gbp_classify_node.c.

vlib_node_registration_t gbp_l2_lpm_classify_node
Initial value:
= {
.name = "l2-gbp-lpm-classify",
.vector_size = sizeof (u32),
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[GPB_LPM_CLASSIFY_DROP] = "error-drop"
},
}
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static u8 * format_gbp_lpm_classify_trace(u8 *s, va_list *args)

(constructor) VLIB_REGISTER_NODE (gbp_l2_lpm_classify_node)

Definition at line 581 of file gbp_classify_node.c.

vlib_node_registration_t gbp_null_classify_node
Initial value:
= {
.name = "gbp-null-classify",
.vector_size = sizeof (u32),
.format_trace = format_gbp_classify_trace,
.n_errors = 0,
.n_next_nodes = 0,
}
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static u8 * format_gbp_classify_trace(u8 *s, va_list *args)

(constructor) VLIB_REGISTER_NODE (gbp_null_classify_node)

Definition at line 216 of file gbp_classify_node.c.

vlib_node_registration_t gbp_src_classify_node
Initial value:
= {
.name = "gbp-src-classify",
.vector_size = sizeof (u32),
.format_trace = format_gbp_classify_trace,
.n_errors = 0,
.n_next_nodes = 0,
}
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static u8 * format_gbp_classify_trace(u8 *s, va_list *args)

(constructor) VLIB_REGISTER_NODE (gbp_src_classify_node)

Definition at line 226 of file gbp_classify_node.c.