FD.io VPP  v19.04-6-g6f05f72
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

#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

Enumerator
IP_CLASSIFY_N_ERROR 

Definition at line 45 of file ip_classify.c.

Function Documentation

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:

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

Definition at line 311 of file ip_classify.c.

+ Here is the call graph for this function:

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

Definition at line 332 of file ip_classify.c.

+ Here is the call graph for this function:

static clib_error_t* ip_classify_init ( vlib_main_t vm)
static

Definition at line 355 of file ip_classify.c.

+ Here is the caller graph for this function:

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

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:62
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 320 of file ip_classify.c.

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:62
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 341 of file ip_classify.c.

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.