FD.io VPP  v19.04.4-rc0-5-ge88582fac
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 }
 

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 void gbp_classify_get_src_ip4_address (const ethernet_header_t *eh0, const ip4_address_t **ip4)
 
static void gbp_classify_get_src_ip6_address (const ethernet_header_t *eh0, const ip6_address_t **ip6)
 
static void gbp_classify_get_src_ip_address (const ethernet_header_t *eh0, const ip4_address_t **ip4, const ip6_address_t **ip6)
 
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, dpo_proto_t dproto, u8 is_recirc)
 
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)
 
 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...
 

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.

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.

+ Here is the call graph for this function:

◆ format_gbp_lpm_classify_trace()

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

Definition at line 362 of file gbp_classify_node.c.

+ Here is the call graph for this function:

◆ gbp_classify_get_src_ip4_address()

static void gbp_classify_get_src_ip4_address ( const ethernet_header_t eh0,
const ip4_address_t **  ip4 
)
inlinestatic

Definition at line 283 of file gbp_classify_node.c.

+ Here is the caller graph for this function:

◆ gbp_classify_get_src_ip6_address()

static void gbp_classify_get_src_ip6_address ( const ethernet_header_t eh0,
const ip6_address_t **  ip6 
)
inlinestatic

Definition at line 293 of file gbp_classify_node.c.

+ Here is the caller graph for this function:

◆ gbp_classify_get_src_ip_address()

static void gbp_classify_get_src_ip_address ( const ethernet_header_t eh0,
const ip4_address_t **  ip4,
const ip6_address_t **  ip6 
)
inlinestatic

Definition at line 303 of file gbp_classify_node.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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 561 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 568 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_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 575 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,
dpo_proto_t  dproto,
u8  is_recirc 
)
inlinestatic

Definition at line 378 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_src_classify_feat_node  ,
static   
)

◆ VNET_FEATURE_INIT() [2/4]

VNET_FEATURE_INIT ( gbp_ip6_src_classify_feat_node  ,
static   
)

◆ VNET_FEATURE_INIT() [3/4]

VNET_FEATURE_INIT ( gbp_ip4_lpm_classify_feat_node  ,
static   
)

◆ VNET_FEATURE_INIT() [4/4]

VNET_FEATURE_INIT ( gbp_ip6_lpm_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"
},
}
unsigned int u32
Definition: types.h:88
static u8 * format_gbp_lpm_classify_trace(u8 *s, va_list *args)

(constructor) VLIB_REGISTER_NODE (gbp_ip4_lpm_classify_node)

Definition at line 583 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"
},
}
unsigned int u32
Definition: types.h:88
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.

◆ 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"
},
}
unsigned int u32
Definition: types.h:88
static u8 * format_gbp_lpm_classify_trace(u8 *s, va_list *args)

(constructor) VLIB_REGISTER_NODE (gbp_ip6_lpm_classify_node)

Definition at line 596 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"
},
}
unsigned int u32
Definition: types.h:88
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.

◆ 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"
},
}
unsigned int u32
Definition: types.h:88
static u8 * format_gbp_lpm_classify_trace(u8 *s, va_list *args)

(constructor) VLIB_REGISTER_NODE (gbp_l2_lpm_classify_node)

Definition at line 609 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,
}
unsigned int u32
Definition: types.h:88
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.

◆ 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,
}
unsigned int u32
Definition: types.h:88
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.