FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
ip_classify.c File Reference
+ Include dependency graph for ip_classify.c:

Go to the source code of this file.

Data Structures

struct  ip_classify_trace_t
 

Macros

#define foreach_ip_classify_error
 

Enumerations

enum  ip_classify_error_t { IP_CLASSIFY_N_ERROR }
 

Functions

static u8format_ip_classify_trace (u8 *s, va_list *args)
 
static uword ip_classify_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_ip4)
 
VLIB_NODE_FN() ip4_classify_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip6_classify_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static clib_error_tip_classify_init (vlib_main_t *vm)
 

Variables

static char * ip_classify_error_strings []
 
vlib_node_registration_t ip4_classify_node
 (constructor) VLIB_REGISTER_NODE (ip4_classify_node) More...
 
vlib_node_registration_t ip6_classify_node
 (constructor) VLIB_REGISTER_NODE (ip6_classify_node) More...
 

Macro Definition Documentation

◆ foreach_ip_classify_error

#define foreach_ip_classify_error
Value:
_(MISS, "Classify misses") \
_(HIT, "Classify hits") \
_(CHAIN_HIT, "Classify hits after chain walk")

Definition at line 40 of file ip_classify.c.

Enumeration Type Documentation

◆ ip_classify_error_t

Enumerator
IP_CLASSIFY_N_ERROR 

Definition at line 45 of file ip_classify.c.

Function Documentation

◆ format_ip_classify_trace()

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

Definition at line 29 of file ip_classify.c.

+ Here is the call graph for this function:

◆ ip4_classify_node()

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

Definition at line 304 of file ip_classify.c.

+ Here is the call graph for this function:

◆ ip6_classify_node()

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

Definition at line 325 of file ip_classify.c.

+ Here is the call graph for this function:

◆ ip_classify_init()

static clib_error_t* ip_classify_init ( vlib_main_t vm)
static

Definition at line 348 of file ip_classify.c.

◆ ip_classify_inline()

static uword ip_classify_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  is_ip4 
)
inlinestatic

Definition at line 60 of file ip_classify.c.

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

Variable Documentation

◆ ip4_classify_node

vlib_node_registration_t ip4_classify_node
Initial value:
= {
.name = "ip4-classify",
.vector_size = sizeof (u32),
.sibling_of = "ip4-lookup",
.format_trace = format_ip_classify_trace,
.error_strings = ip_classify_error_strings,
.n_next_nodes = 0,
}
unsigned int u32
Definition: types.h:88
#define ARRAY_LEN(x)
Definition: clib.h:67
static char * ip_classify_error_strings[]
Definition: ip_classify.c:53
static u8 * format_ip_classify_trace(u8 *s, va_list *args)
Definition: ip_classify.c:29

(constructor) VLIB_REGISTER_NODE (ip4_classify_node)

Definition at line 313 of file ip_classify.c.

◆ ip6_classify_node

vlib_node_registration_t ip6_classify_node
Initial value:
= {
.name = "ip6-classify",
.vector_size = sizeof (u32),
.sibling_of = "ip6-lookup",
.format_trace = format_ip_classify_trace,
.error_strings = ip_classify_error_strings,
.n_next_nodes = 0,
}
unsigned int u32
Definition: types.h:88
#define ARRAY_LEN(x)
Definition: clib.h:67
static char * ip_classify_error_strings[]
Definition: ip_classify.c:53
static u8 * format_ip_classify_trace(u8 *s, va_list *args)
Definition: ip_classify.c:29

(constructor) VLIB_REGISTER_NODE (ip6_classify_node)

Definition at line 334 of file ip_classify.c.

◆ ip_classify_error_strings

char* ip_classify_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_ip_classify_error
Definition: ip_classify.c:40

Definition at line 53 of file ip_classify.c.