FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
flow_classify_node.c File Reference
+ Include dependency graph for flow_classify_node.c:

Go to the source code of this file.

Data Structures

struct  flow_classify_trace_t
 

Macros

#define foreach_flow_classify_error
 

Enumerations

enum  flow_classify_error_t { FLOW_CLASSIFY_N_ERROR }
 

Functions

static u8format_flow_classify_trace (u8 *s, va_list *args)
 
static uword flow_classify_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, flow_classify_table_id_t tid)
 
static uword ip4_flow_classify (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (ip4_flow_classify_node, ip4_flow_classify)
 
static uword ip6_flow_classify (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (ip6_flow_classify_node, ip6_flow_classify)
 
static clib_error_tflow_classify_init (vlib_main_t *vm)
 

Variables

static char * flow_classify_error_strings []
 
vlib_node_registration_t ip4_flow_classify_node
 (constructor) VLIB_REGISTER_NODE (ip4_flow_classify_node) More...
 
vlib_node_registration_t ip6_flow_classify_node
 (constructor) VLIB_REGISTER_NODE (ip6_flow_classify_node) More...
 

Macro Definition Documentation

◆ foreach_flow_classify_error

#define foreach_flow_classify_error
Value:
_(MISS, "Flow classify misses") \
_(HIT, "Flow classify hits") \
_(CHAIN_HIT, "Flow classify hits after chain walk") \
_(DROP, "Flow classify action drop")
DROP
Definition: error.def:41

Definition at line 44 of file flow_classify_node.c.

Enumeration Type Documentation

◆ flow_classify_error_t

Enumerator
FLOW_CLASSIFY_N_ERROR 

Definition at line 50 of file flow_classify_node.c.

Function Documentation

◆ flow_classify_init()

static clib_error_t* flow_classify_init ( vlib_main_t vm)
static

Definition at line 329 of file flow_classify_node.c.

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

◆ flow_classify_inline()

static uword flow_classify_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
flow_classify_table_id_t  tid 
)
inlinestatic

Definition at line 65 of file flow_classify_node.c.

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

◆ format_flow_classify_trace()

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

Definition at line 33 of file flow_classify_node.c.

+ Here is the call graph for this function:

◆ ip4_flow_classify()

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

Definition at line 279 of file flow_classify_node.c.

+ Here is the call graph for this function:

◆ ip6_flow_classify()

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

Definition at line 303 of file flow_classify_node.c.

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

◆ VLIB_NODE_FUNCTION_MULTIARCH() [1/2]

VLIB_NODE_FUNCTION_MULTIARCH ( ip4_flow_classify_node  ,
ip4_flow_classify   
)

◆ VLIB_NODE_FUNCTION_MULTIARCH() [2/2]

VLIB_NODE_FUNCTION_MULTIARCH ( ip6_flow_classify_node  ,
ip6_flow_classify   
)

Variable Documentation

◆ flow_classify_error_strings

char* flow_classify_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_flow_classify_error

Definition at line 58 of file flow_classify_node.c.

◆ ip4_flow_classify_node

vlib_node_registration_t ip4_flow_classify_node
Initial value:
= {
.function = ip4_flow_classify,
.name = "ip4-flow-classify",
.vector_size = sizeof (u32),
.format_trace = format_flow_classify_trace,
.error_strings = flow_classify_error_strings,
.next_nodes = {
},
}
static char * flow_classify_error_strings[]
unsigned int u32
Definition: types.h:88
static u8 * format_flow_classify_trace(u8 *s, va_list *args)
#define ARRAY_LEN(x)
Definition: clib.h:62
static uword ip4_flow_classify(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)

(constructor) VLIB_REGISTER_NODE (ip4_flow_classify_node)

Definition at line 286 of file flow_classify_node.c.

◆ ip6_flow_classify_node

vlib_node_registration_t ip6_flow_classify_node
Initial value:
= {
.function = ip6_flow_classify,
.name = "ip6-flow-classify",
.vector_size = sizeof (u32),
.format_trace = format_flow_classify_trace,
.error_strings = flow_classify_error_strings,
.next_nodes = {
},
}
static char * flow_classify_error_strings[]
unsigned int u32
Definition: types.h:88
static uword ip6_flow_classify(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static u8 * format_flow_classify_trace(u8 *s, va_list *args)
#define ARRAY_LEN(x)
Definition: clib.h:62

(constructor) VLIB_REGISTER_NODE (ip6_flow_classify_node)

Definition at line 310 of file flow_classify_node.c.