FD.io VPP  v18.11-rc0-18-g2a3fb1a
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)
 
static uword ip4_classify (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword ip6_classify (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static clib_error_tip_classify_init (vlib_main_t *vm)
 

Variables

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...
 
static char * ip_classify_error_strings []
 

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 43 of file ip_classify.c.

Enumeration Type Documentation

Enumerator
IP_CLASSIFY_N_ERROR 

Definition at line 48 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:

+ Here is the caller graph for this function:

static uword ip4_classify ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 315 of file ip_classify.c.

+ Here is the call graph for this function:

static uword ip6_classify ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 338 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 360 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 63 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:
= {
.function = ip4_classify,
.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:59
static char * ip_classify_error_strings[]
Definition: ip_classify.c:56
static u8 * format_ip_classify_trace(u8 *s, va_list *args)
Definition: ip_classify.c:29
static uword ip4_classify(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip_classify.c:315

(constructor) VLIB_REGISTER_NODE (ip4_classify_node)

Definition at line 40 of file ip_classify.c.

vlib_node_registration_t ip6_classify_node
Initial value:
= {
.function = ip6_classify,
.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
static uword ip6_classify(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip_classify.c:338
#define ARRAY_LEN(x)
Definition: clib.h:59
static char * ip_classify_error_strings[]
Definition: ip_classify.c:56
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 41 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:43

Definition at line 56 of file ip_classify.c.