FD.io VPP  v19.08.3-2-gbabecb413
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)
 
VLIB_NODE_FN() ip4_flow_classify_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip6_flow_classify_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
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 320 of file flow_classify_node.c.

+ Here is the call 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_node()

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

Definition at line 275 of file flow_classify_node.c.

+ Here is the call graph for this function:

◆ ip6_flow_classify_node()

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

Definition at line 296 of file flow_classify_node.c.

+ Here is the call graph for this function:

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:
= {
.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:63

(constructor) VLIB_REGISTER_NODE (ip4_flow_classify_node)

Definition at line 283 of file flow_classify_node.c.

◆ ip6_flow_classify_node

vlib_node_registration_t ip6_flow_classify_node
Initial value:
= {
.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 u8 * format_flow_classify_trace(u8 *s, va_list *args)
#define ARRAY_LEN(x)
Definition: clib.h:63

(constructor) VLIB_REGISTER_NODE (ip6_flow_classify_node)

Definition at line 304 of file flow_classify_node.c.