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

Go to the source code of this file.

Data Structures

struct  qos_mark_trace_t_
 per-packet trace data More...
 

Typedefs

typedef struct qos_mark_trace_t_ qos_mark_trace_t
 per-packet trace data More...
 

Functions

static qos_egress_map_tqos_egress_map_interface (u32 sw_if_index, qos_source_t output_source)
 
static uword qos_mark_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, qos_source_t output_source, int is_ip6)
 
static u8format_qos_mark_trace (u8 *s, va_list *args)
 
VLIB_NODE_FN() ip4_qos_mark_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip6_qos_mark_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() mpls_qos_mark_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() vlan_mpls_qos_mark_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() vlan_ip4_qos_mark_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() vlan_ip6_qos_mark_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VNET_FEATURE_INIT (ip4_qos_mark_node, static)
 
 VNET_FEATURE_INIT (ip6_qos_mark_node, static)
 
 VNET_FEATURE_INIT (mpls_qos_mark_node, static)
 
 VNET_FEATURE_INIT (vlan_ip4_qos_mark_node, static)
 
 VNET_FEATURE_INIT (vlan_ip6_qos_mark_node, static)
 
 VNET_FEATURE_INIT (vlan_mpls_qos_mark_node, static)
 

Variables

index_tqos_mark_configs [QOS_N_SOURCES]
 per-interface vector of which MAP is used by which interface for each output source More...
 
vlib_node_registration_t ip4_qos_mark_node
 (constructor) VLIB_REGISTER_NODE (ip4_qos_mark_node) More...
 
vlib_node_registration_t ip6_qos_mark_node
 (constructor) VLIB_REGISTER_NODE (ip6_qos_mark_node) More...
 
vlib_node_registration_t mpls_qos_mark_node
 (constructor) VLIB_REGISTER_NODE (mpls_qos_mark_node) More...
 
vlib_node_registration_t vlan_ip4_qos_mark_node
 (constructor) VLIB_REGISTER_NODE (vlan_ip4_qos_mark_node) More...
 
vlib_node_registration_t vlan_ip6_qos_mark_node
 (constructor) VLIB_REGISTER_NODE (vlan_ip6_qos_mark_node) More...
 
vlib_node_registration_t vlan_mpls_qos_mark_node
 (constructor) VLIB_REGISTER_NODE (vlan_mpls_qos_mark_node) More...
 

Typedef Documentation

◆ qos_mark_trace_t

per-packet trace data

Function Documentation

◆ format_qos_mark_trace()

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

Definition at line 161 of file qos_mark_node.c.

+ Here is the call graph for this function:

◆ ip4_qos_mark_node()

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

Definition at line 173 of file qos_mark_node.c.

+ Here is the call graph for this function:

◆ ip6_qos_mark_node()

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

Definition at line 180 of file qos_mark_node.c.

+ Here is the call graph for this function:

◆ mpls_qos_mark_node()

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

Definition at line 187 of file qos_mark_node.c.

+ Here is the call graph for this function:

◆ qos_egress_map_interface()

static qos_egress_map_t* qos_egress_map_interface ( u32  sw_if_index,
qos_source_t  output_source 
)
inlinestatic

Definition at line 24 of file qos_mark_node.c.

+ Here is the caller graph for this function:

◆ qos_mark_inline()

static uword qos_mark_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
qos_source_t  output_source,
int  is_ip6 
)
inlinestatic

Definition at line 44 of file qos_mark_node.c.

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

◆ vlan_ip4_qos_mark_node()

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

Definition at line 201 of file qos_mark_node.c.

+ Here is the call graph for this function:

◆ vlan_ip6_qos_mark_node()

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

Definition at line 208 of file qos_mark_node.c.

+ Here is the call graph for this function:

◆ vlan_mpls_qos_mark_node()

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

Definition at line 194 of file qos_mark_node.c.

+ Here is the call graph for this function:

◆ VNET_FEATURE_INIT() [1/6]

VNET_FEATURE_INIT ( ip4_qos_mark_node  ,
static   
)

◆ VNET_FEATURE_INIT() [2/6]

VNET_FEATURE_INIT ( ip6_qos_mark_node  ,
static   
)

◆ VNET_FEATURE_INIT() [3/6]

VNET_FEATURE_INIT ( mpls_qos_mark_node  ,
static   
)

◆ VNET_FEATURE_INIT() [4/6]

VNET_FEATURE_INIT ( vlan_ip4_qos_mark_node  ,
static   
)

◆ VNET_FEATURE_INIT() [5/6]

VNET_FEATURE_INIT ( vlan_ip6_qos_mark_node  ,
static   
)

◆ VNET_FEATURE_INIT() [6/6]

VNET_FEATURE_INIT ( vlan_mpls_qos_mark_node  ,
static   
)

Variable Documentation

◆ ip4_qos_mark_node

vlib_node_registration_t ip4_qos_mark_node
Initial value:
= {
.name = "ip4-qos-mark",
.vector_size = sizeof (u32),
.format_trace = format_qos_mark_trace,
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "ip4-drop",
},
}
static u8 * format_qos_mark_trace(u8 *s, va_list *args)
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123

(constructor) VLIB_REGISTER_NODE (ip4_qos_mark_node)

Definition at line 216 of file qos_mark_node.c.

◆ ip6_qos_mark_node

vlib_node_registration_t ip6_qos_mark_node
Initial value:
= {
.name = "ip6-qos-mark",
.vector_size = sizeof (u32),
.format_trace = format_qos_mark_trace,
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "ip6-drop",
},
}
static u8 * format_qos_mark_trace(u8 *s, va_list *args)
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123

(constructor) VLIB_REGISTER_NODE (ip6_qos_mark_node)

Definition at line 235 of file qos_mark_node.c.

◆ mpls_qos_mark_node

vlib_node_registration_t mpls_qos_mark_node
Initial value:
= {
.name = "mpls-qos-mark",
.vector_size = sizeof (u32),
.format_trace = format_qos_mark_trace,
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "mpls-drop",
},
}
static u8 * format_qos_mark_trace(u8 *s, va_list *args)
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123

(constructor) VLIB_REGISTER_NODE (mpls_qos_mark_node)

Definition at line 254 of file qos_mark_node.c.

◆ qos_mark_configs

index_t* qos_mark_configs[QOS_N_SOURCES]

per-interface vector of which MAP is used by which interface for each output source

Definition at line 25 of file qos_mark.c.

◆ vlan_ip4_qos_mark_node

vlib_node_registration_t vlan_ip4_qos_mark_node
Initial value:
= {
.name = "vlan-ip4-qos-mark",
.vector_size = sizeof (u32),
.format_trace = format_qos_mark_trace,
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
static u8 * format_qos_mark_trace(u8 *s, va_list *args)
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123

(constructor) VLIB_REGISTER_NODE (vlan_ip4_qos_mark_node)

Definition at line 273 of file qos_mark_node.c.

◆ vlan_ip6_qos_mark_node

vlib_node_registration_t vlan_ip6_qos_mark_node
Initial value:
= {
.name = "vlan-ip6-qos-mark",
.vector_size = sizeof (u32),
.format_trace = format_qos_mark_trace,
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
static u8 * format_qos_mark_trace(u8 *s, va_list *args)
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123

(constructor) VLIB_REGISTER_NODE (vlan_ip6_qos_mark_node)

Definition at line 293 of file qos_mark_node.c.

◆ vlan_mpls_qos_mark_node

vlib_node_registration_t vlan_mpls_qos_mark_node
Initial value:
= {
.name = "vlan-mpls-qos-mark",
.vector_size = sizeof (u32),
.format_trace = format_qos_mark_trace,
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
static u8 * format_qos_mark_trace(u8 *s, va_list *args)
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123

(constructor) VLIB_REGISTER_NODE (vlan_mpls_qos_mark_node)

Definition at line 313 of file qos_mark_node.c.