FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
qos_record_node.c File Reference
+ Include dependency graph for qos_record_node.c:

Go to the source code of this file.

Data Structures

struct  qos_record_trace_t_
 per-packet trace data More...
 

Typedefs

typedef struct qos_record_trace_t_ qos_record_trace_t
 per-packet trace data More...
 

Functions

static u8format_qos_record_trace (u8 *s, va_list *args)
 
static uword qos_record_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, qos_source_t qos_src, dpo_proto_t dproto, int is_l2)
 
VLIB_NODE_FN() ip4_qos_record_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip6_qos_record_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() mpls_qos_record_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() vlan_ip4_qos_record_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() vlan_ip6_qos_record_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() vlan_mpls_qos_record_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() l2_ip_qos_record_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VNET_FEATURE_INIT (ip4_qos_record_node, static)
 
 VNET_FEATURE_INIT (ip4m_qos_record_node, static)
 
 VNET_FEATURE_INIT (ip6_qos_record_node, static)
 
 VNET_FEATURE_INIT (ip6m_qos_record_node, static)
 
 VNET_FEATURE_INIT (mpls_qos_record_node, static)
 
 VNET_FEATURE_INIT (vlan_mpls_qos_record_node, static)
 
 VNET_FEATURE_INIT (vlan_ip4_qos_record_node, static)
 
 VNET_FEATURE_INIT (vlan_ip4m_qos_record_node, static)
 
 VNET_FEATURE_INIT (vlan_ip6_qos_record_node, static)
 
 VNET_FEATURE_INIT (vlan_ip6m_qos_record_node, static)
 

Variables

u8qos_record_configs [QOS_N_SOURCES]
 Per-interface, per-protocol vector of feature on/off configurations. More...
 
u32 l2_qos_input_next [QOS_N_SOURCES][32]
 
vlib_node_registration_t ip4_qos_record_node
 (constructor) VLIB_REGISTER_NODE (ip4_qos_record_node) More...
 
vlib_node_registration_t ip6_qos_record_node
 (constructor) VLIB_REGISTER_NODE (ip6_qos_record_node) More...
 
vlib_node_registration_t mpls_qos_record_node
 (constructor) VLIB_REGISTER_NODE (mpls_qos_record_node) More...
 
vlib_node_registration_t vlan_mpls_qos_record_node
 (constructor) VLIB_REGISTER_NODE (vlan_mpls_qos_record_node) More...
 
vlib_node_registration_t vlan_ip4_qos_record_node
 (constructor) VLIB_REGISTER_NODE (vlan_ip4_qos_record_node) More...
 
vlib_node_registration_t vlan_ip6_qos_record_node
 (constructor) VLIB_REGISTER_NODE (vlan_ip6_qos_record_node) More...
 
vlib_node_registration_t l2_ip_qos_record_node
 (constructor) VLIB_REGISTER_NODE (l2_ip_qos_record_node) More...
 

Typedef Documentation

◆ qos_record_trace_t

per-packet trace data

Function Documentation

◆ format_qos_record_trace()

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

Definition at line 38 of file qos_record_node.c.

◆ ip4_qos_record_node()

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

Definition at line 170 of file qos_record_node.c.

+ Here is the call graph for this function:

◆ ip6_qos_record_node()

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

Definition at line 178 of file qos_record_node.c.

+ Here is the call graph for this function:

◆ l2_ip_qos_record_node()

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

Definition at line 218 of file qos_record_node.c.

+ Here is the call graph for this function:

◆ mpls_qos_record_node()

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

Definition at line 186 of file qos_record_node.c.

+ Here is the call graph for this function:

◆ qos_record_inline()

static uword qos_record_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
qos_source_t  qos_src,
dpo_proto_t  dproto,
int  is_l2 
)
inlinestatic

Definition at line 50 of file qos_record_node.c.

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

◆ vlan_ip4_qos_record_node()

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

Definition at line 194 of file qos_record_node.c.

+ Here is the call graph for this function:

◆ vlan_ip6_qos_record_node()

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

Definition at line 202 of file qos_record_node.c.

+ Here is the call graph for this function:

◆ vlan_mpls_qos_record_node()

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

Definition at line 210 of file qos_record_node.c.

+ Here is the call graph for this function:

◆ VNET_FEATURE_INIT() [1/10]

VNET_FEATURE_INIT ( ip4_qos_record_node  ,
static   
)

◆ VNET_FEATURE_INIT() [2/10]

VNET_FEATURE_INIT ( ip4m_qos_record_node  ,
static   
)

◆ VNET_FEATURE_INIT() [3/10]

VNET_FEATURE_INIT ( ip6_qos_record_node  ,
static   
)

◆ VNET_FEATURE_INIT() [4/10]

VNET_FEATURE_INIT ( ip6m_qos_record_node  ,
static   
)

◆ VNET_FEATURE_INIT() [5/10]

VNET_FEATURE_INIT ( mpls_qos_record_node  ,
static   
)

◆ VNET_FEATURE_INIT() [6/10]

VNET_FEATURE_INIT ( vlan_ip4_qos_record_node  ,
static   
)

◆ VNET_FEATURE_INIT() [7/10]

VNET_FEATURE_INIT ( vlan_ip4m_qos_record_node  ,
static   
)

◆ VNET_FEATURE_INIT() [8/10]

VNET_FEATURE_INIT ( vlan_ip6_qos_record_node  ,
static   
)

◆ VNET_FEATURE_INIT() [9/10]

VNET_FEATURE_INIT ( vlan_ip6m_qos_record_node  ,
static   
)

◆ VNET_FEATURE_INIT() [10/10]

VNET_FEATURE_INIT ( vlan_mpls_qos_record_node  ,
static   
)

Variable Documentation

◆ ip4_qos_record_node

vlib_node_registration_t ip4_qos_record_node
Initial value:
= {
.name = "ip4-qos-record",
.vector_size = sizeof (u32),
.format_trace = format_qos_record_trace,
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "ip4-drop",
},
}

(constructor) VLIB_REGISTER_NODE (ip4_qos_record_node)

Definition at line 226 of file qos_record_node.c.

◆ ip6_qos_record_node

vlib_node_registration_t ip6_qos_record_node
Initial value:
= {
.name = "ip6-qos-record",
.vector_size = sizeof (u32),
.format_trace = format_qos_record_trace,
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "ip6-drop",
},
}

(constructor) VLIB_REGISTER_NODE (ip6_qos_record_node)

Definition at line 249 of file qos_record_node.c.

◆ l2_ip_qos_record_node

vlib_node_registration_t l2_ip_qos_record_node
Initial value:
= {
.name = "l2-ip-qos-record",
.vector_size = sizeof (u32),
.format_trace = format_qos_record_trace,
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}

(constructor) VLIB_REGISTER_NODE (l2_ip_qos_record_node)

Definition at line 361 of file qos_record_node.c.

◆ l2_qos_input_next

u32 l2_qos_input_next[QOS_N_SOURCES][32]

Definition at line 28 of file qos_record.c.

◆ mpls_qos_record_node

vlib_node_registration_t mpls_qos_record_node
Initial value:
= {
.name = "mpls-qos-record",
.vector_size = sizeof (u32),
.format_trace = format_qos_record_trace,
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "mpls-drop",
},
}

(constructor) VLIB_REGISTER_NODE (mpls_qos_record_node)

Definition at line 272 of file qos_record_node.c.

◆ qos_record_configs

u8* qos_record_configs[QOS_N_SOURCES]

Per-interface, per-protocol vector of feature on/off configurations.

Definition at line 27 of file qos_record.c.

◆ vlan_ip4_qos_record_node

vlib_node_registration_t vlan_ip4_qos_record_node
Initial value:
= {
.name = "vlan-ip4-qos-record",
.vector_size = sizeof (u32),
.format_trace = format_qos_record_trace,
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "ip4-drop",
},
}

(constructor) VLIB_REGISTER_NODE (vlan_ip4_qos_record_node)

Definition at line 311 of file qos_record_node.c.

◆ vlan_ip6_qos_record_node

vlib_node_registration_t vlan_ip6_qos_record_node
Initial value:
= {
.name = "vlan-ip6-qos-record",
.vector_size = sizeof (u32),
.format_trace = format_qos_record_trace,
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "ip6-drop",
},
}

(constructor) VLIB_REGISTER_NODE (vlan_ip6_qos_record_node)

Definition at line 336 of file qos_record_node.c.

◆ vlan_mpls_qos_record_node

vlib_node_registration_t vlan_mpls_qos_record_node
Initial value:
= {
.name = "vlan-mpls-qos-record",
.vector_size = sizeof (u32),
.format_trace = format_qos_record_trace,
.n_errors = 0,
.n_next_nodes = 1,
.next_nodes = {
[0] = "mpls-drop",
},
}

(constructor) VLIB_REGISTER_NODE (vlan_mpls_qos_record_node)

Definition at line 291 of file qos_record_node.c.

VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
format_qos_record_trace
static u8 * format_qos_record_trace(u8 *s, va_list *args)
Definition: qos_record_node.c:38
u32
unsigned int u32
Definition: types.h:88
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123