FD.io VPP  v21.10.1-2-g0a485f517
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

◆ gbp_classify_trace_t

per-packet trace data

◆ gbp_lpm_classify_next_t

◆ gbp_lpm_classify_trace_t

per-packet trace data

Enumeration Type Documentation

◆ gbp_lpm_classify_next_t_

Enumerator
GPB_LPM_CLASSIFY_DROP 

Definition at line 277 of file gbp_classify_node.c.

◆ gbp_lpm_type

Enumerator
GBP_LPM_RECIRC 
GBP_LPM_EPG 
GBP_LPM_ANON 

Definition at line 306 of file gbp_classify_node.c.

Function Documentation

◆ format_gbp_classify_trace()

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

Definition at line 204 of file gbp_classify_node.c.

◆ format_gbp_lpm_classify_trace()

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

Definition at line 294 of file gbp_classify_node.c.

◆ gbp_classify_inline()

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:

◆ gbp_ip4_lpm_classify_node()

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:

◆ gbp_ip4_src_classify_node()

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:

◆ gbp_ip6_lpm_classify_node()

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:

◆ gbp_ip6_src_classify_node()

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:

◆ gbp_l2_lpm_anon_classify_node()

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:

◆ gbp_l2_lpm_classify_node()

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:

◆ gbp_lpm_classify_inline()

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:

◆ gbp_null_classify_node()

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:

◆ gbp_src_classify_node()

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() [1/4]

VNET_FEATURE_INIT ( gbp_ip4_lpm_classify_feat_node  ,
static   
)

◆ VNET_FEATURE_INIT() [2/4]

VNET_FEATURE_INIT ( gbp_ip4_src_classify_feat_node  ,
static   
)

◆ VNET_FEATURE_INIT() [3/4]

VNET_FEATURE_INIT ( gbp_ip6_lpm_classify_feat_node  ,
static   
)

◆ VNET_FEATURE_INIT() [4/4]

VNET_FEATURE_INIT ( gbp_ip6_src_classify_feat_node  ,
static   
)

Variable Documentation

◆ gbp_ip4_lpm_classify_node

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"
},
}

(constructor) VLIB_REGISTER_NODE (gbp_ip4_lpm_classify_node)

Definition at line 555 of file gbp_classify_node.c.

◆ gbp_ip4_src_classify_node

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"
},
}

(constructor) VLIB_REGISTER_NODE (gbp_ip4_src_classify_node)

Definition at line 236 of file gbp_classify_node.c.

◆ gbp_ip6_lpm_classify_node

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"
},
}

(constructor) VLIB_REGISTER_NODE (gbp_ip6_lpm_classify_node)

Definition at line 568 of file gbp_classify_node.c.

◆ gbp_ip6_src_classify_node

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"
},
}

(constructor) VLIB_REGISTER_NODE (gbp_ip6_src_classify_node)

Definition at line 249 of file gbp_classify_node.c.

◆ gbp_l2_lpm_anon_classify_node

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"
},
}

(constructor) VLIB_REGISTER_NODE (gbp_l2_lpm_anon_classify_node)

Definition at line 594 of file gbp_classify_node.c.

◆ gbp_l2_lpm_classify_node

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"
},
}

(constructor) VLIB_REGISTER_NODE (gbp_l2_lpm_classify_node)

Definition at line 581 of file gbp_classify_node.c.

◆ gbp_null_classify_node

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,
}

(constructor) VLIB_REGISTER_NODE (gbp_null_classify_node)

Definition at line 216 of file gbp_classify_node.c.

◆ gbp_src_classify_node

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,
}

(constructor) VLIB_REGISTER_NODE (gbp_src_classify_node)

Definition at line 226 of file gbp_classify_node.c.

format_gbp_classify_trace
static u8 * format_gbp_classify_trace(u8 *s, va_list *args)
Definition: gbp_classify_node.c:204
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
GPB_LPM_CLASSIFY_DROP
@ GPB_LPM_CLASSIFY_DROP
Definition: gbp_classify_node.c:279
u32
unsigned int u32
Definition: types.h:88
format_gbp_lpm_classify_trace
static u8 * format_gbp_lpm_classify_trace(u8 *s, va_list *args)
Definition: gbp_classify_node.c:294
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123