FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
qos_record.c File Reference
+ Include dependency graph for qos_record.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 void qos_record_feature_config (u32 sw_if_index, qos_source_t input_source, u8 enable)
 
int qos_record_enable (u32 sw_if_index, qos_source_t input_source)
 
int qos_record_disable (u32 sw_if_index, qos_source_t input_source)
 
static clib_error_tqos_record_ip_interface_add_del (vnet_main_t *vnm, u32 sw_if_index, u32 is_add)
 
 VNET_SW_INTERFACE_ADD_DEL_FUNCTION (qos_record_ip_interface_add_del)
 
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)
 
static u8format_qos_record_trace (u8 *s, va_list *args)
 
static uword ip4_qos_record (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword ip6_qos_record (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword mpls_qos_record (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword vlan_ip4_qos_record (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword vlan_ip6_qos_record (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword vlan_mpls_qos_record (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword l2_ip_qos_record (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (ip4_qos_record_node, ip4_qos_record)
 
 VNET_FEATURE_INIT (ip4_qos_record_node, static)
 
 VNET_FEATURE_INIT (ip4m_qos_record_node, static)
 
 VLIB_NODE_FUNCTION_MULTIARCH (ip6_qos_record_node, ip6_qos_record)
 
 VNET_FEATURE_INIT (ip6_qos_record_node, static)
 
 VNET_FEATURE_INIT (ip6m_qos_record_node, static)
 
 VLIB_NODE_FUNCTION_MULTIARCH (mpls_qos_record_node, mpls_qos_record)
 
 VNET_FEATURE_INIT (mpls_qos_record_node, static)
 
 VLIB_NODE_FUNCTION_MULTIARCH (vlan_mpls_qos_record_node, vlan_mpls_qos_record)
 
 VNET_FEATURE_INIT (vlan_mpls_qos_record_node, static)
 
 VLIB_NODE_FUNCTION_MULTIARCH (vlan_ip4_qos_record_node, vlan_ip4_qos_record)
 
 VNET_FEATURE_INIT (vlan_ip4_qos_record_node, static)
 
 VNET_FEATURE_INIT (vlan_ip4m_qos_record_node, static)
 
 VLIB_NODE_FUNCTION_MULTIARCH (vlan_ip6_qos_record_node, vlan_ip6_qos_record)
 
 VNET_FEATURE_INIT (vlan_ip6_qos_record_node, static)
 
 VNET_FEATURE_INIT (vlan_ip6m_qos_record_node, static)
 
 VLIB_NODE_FUNCTION_MULTIARCH (l2_ip_qos_record_node, l2_ip_qos_record)
 
clib_error_tl2_ip_qos_init (vlib_main_t *vm)
 
static clib_error_tqos_record_cli (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static u8qos_record_configs [QOS_N_SOURCES]
 Per-interface, per-protocol vector of feature on/off configurations. More...
 
static 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...
 
static vlib_node_registration_t l2_ip_qos_record_node
 (constructor) VLIB_REGISTER_NODE (l2_ip_qos_record_node) More...
 
static vlib_cli_command_t qos_record_command
 (constructor) VLIB_CLI_COMMAND (qos_record_command) 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 257 of file qos_record.c.

+ Here is the call graph for this function:

◆ ip4_qos_record()

static uword ip4_qos_record ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
inlinestatic

Definition at line 269 of file qos_record.c.

+ Here is the call graph for this function:

◆ ip6_qos_record()

static uword ip6_qos_record ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
inlinestatic

Definition at line 277 of file qos_record.c.

+ Here is the call graph for this function:

◆ l2_ip_qos_init()

clib_error_t* l2_ip_qos_init ( vlib_main_t vm)

Definition at line 498 of file qos_record.c.

+ Here is the call graph for this function:

◆ l2_ip_qos_record()

static uword l2_ip_qos_record ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
inlinestatic

Definition at line 317 of file qos_record.c.

+ Here is the call graph for this function:

◆ mpls_qos_record()

static uword mpls_qos_record ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
inlinestatic

Definition at line 285 of file qos_record.c.

+ Here is the call graph for this function:

◆ qos_record_cli()

static clib_error_t* qos_record_cli ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 515 of file qos_record.c.

+ Here is the call graph for this function:

◆ qos_record_disable()

int qos_record_disable ( u32  sw_if_index,
qos_source_t  input_source 
)

Definition at line 85 of file qos_record.c.

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

◆ qos_record_enable()

int qos_record_enable ( u32  sw_if_index,
qos_source_t  input_source 
)

Definition at line 71 of file qos_record.c.

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

◆ qos_record_feature_config()

static void qos_record_feature_config ( u32  sw_if_index,
qos_source_t  input_source,
u8  enable 
)
static

Definition at line 31 of file qos_record.c.

+ Here is the call graph for this function:
+ Here is the caller 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 136 of file qos_record.c.

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

◆ qos_record_ip_interface_add_del()

static clib_error_t* qos_record_ip_interface_add_del ( vnet_main_t vnm,
u32  sw_if_index,
u32  is_add 
)
static

Definition at line 108 of file qos_record.c.

+ Here is the call graph for this function:

◆ vlan_ip4_qos_record()

static uword vlan_ip4_qos_record ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
inlinestatic

Definition at line 293 of file qos_record.c.

+ Here is the call graph for this function:

◆ vlan_ip6_qos_record()

static uword vlan_ip6_qos_record ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
inlinestatic

Definition at line 301 of file qos_record.c.

+ Here is the call graph for this function:

◆ vlan_mpls_qos_record()

static uword vlan_mpls_qos_record ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
inlinestatic

Definition at line 309 of file qos_record.c.

+ Here is the call graph for this function:

◆ VLIB_NODE_FUNCTION_MULTIARCH() [1/7]

VLIB_NODE_FUNCTION_MULTIARCH ( ip4_qos_record_node  ,
ip4_qos_record   
)

◆ VLIB_NODE_FUNCTION_MULTIARCH() [2/7]

VLIB_NODE_FUNCTION_MULTIARCH ( ip6_qos_record_node  ,
ip6_qos_record   
)

◆ VLIB_NODE_FUNCTION_MULTIARCH() [3/7]

VLIB_NODE_FUNCTION_MULTIARCH ( mpls_qos_record_node  ,
mpls_qos_record   
)

◆ VLIB_NODE_FUNCTION_MULTIARCH() [4/7]

VLIB_NODE_FUNCTION_MULTIARCH ( vlan_mpls_qos_record_node  ,
vlan_mpls_qos_record   
)

◆ VLIB_NODE_FUNCTION_MULTIARCH() [5/7]

VLIB_NODE_FUNCTION_MULTIARCH ( vlan_ip4_qos_record_node  ,
vlan_ip4_qos_record   
)

◆ VLIB_NODE_FUNCTION_MULTIARCH() [6/7]

VLIB_NODE_FUNCTION_MULTIARCH ( vlan_ip6_qos_record_node  ,
vlan_ip6_qos_record   
)

◆ VLIB_NODE_FUNCTION_MULTIARCH() [7/7]

VLIB_NODE_FUNCTION_MULTIARCH ( l2_ip_qos_record_node  ,
l2_ip_qos_record   
)

◆ 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_mpls_qos_record_node  ,
static   
)

◆ VNET_FEATURE_INIT() [7/10]

VNET_FEATURE_INIT ( vlan_ip4_qos_record_node  ,
static   
)

◆ VNET_FEATURE_INIT() [8/10]

VNET_FEATURE_INIT ( vlan_ip4m_qos_record_node  ,
static   
)

◆ VNET_FEATURE_INIT() [9/10]

VNET_FEATURE_INIT ( vlan_ip6_qos_record_node  ,
static   
)

◆ VNET_FEATURE_INIT() [10/10]

VNET_FEATURE_INIT ( vlan_ip6m_qos_record_node  ,
static   
)

◆ VNET_SW_INTERFACE_ADD_DEL_FUNCTION()

VNET_SW_INTERFACE_ADD_DEL_FUNCTION ( qos_record_ip_interface_add_del  )
+ Here is the caller graph for this function:

Variable Documentation

◆ ip4_qos_record_node

vlib_node_registration_t ip4_qos_record_node
Initial value:
= {
.function = ip4_qos_record,
.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",
},
}
static uword ip4_qos_record(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: qos_record.c:269
unsigned int u32
Definition: types.h:88
static u8 * format_qos_record_trace(u8 *s, va_list *args)
Definition: qos_record.c:257

(constructor) VLIB_REGISTER_NODE (ip4_qos_record_node)

Definition at line 324 of file qos_record.c.

◆ ip6_qos_record_node

vlib_node_registration_t ip6_qos_record_node
Initial value:
= {
.function = ip6_qos_record,
.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",
},
}
unsigned int u32
Definition: types.h:88
static u8 * format_qos_record_trace(u8 *s, va_list *args)
Definition: qos_record.c:257
static uword ip6_qos_record(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: qos_record.c:277

(constructor) VLIB_REGISTER_NODE (ip6_qos_record_node)

Definition at line 350 of file qos_record.c.

◆ l2_ip_qos_record_node

vlib_node_registration_t l2_ip_qos_record_node
static
Initial value:
= {
.function = l2_ip_qos_record,
.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",
},
}
unsigned int u32
Definition: types.h:88
static u8 * format_qos_record_trace(u8 *s, va_list *args)
Definition: qos_record.c:257
static uword l2_ip_qos_record(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: qos_record.c:317

(constructor) VLIB_REGISTER_NODE (l2_ip_qos_record_node)

Definition at line 477 of file qos_record.c.

◆ l2_qos_input_next

u32 l2_qos_input_next[QOS_N_SOURCES][32]
static

Definition at line 28 of file qos_record.c.

◆ mpls_qos_record_node

vlib_node_registration_t mpls_qos_record_node
Initial value:
= {
.function = mpls_qos_record,
.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",
},
}
static uword mpls_qos_record(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: qos_record.c:285
unsigned int u32
Definition: types.h:88
static u8 * format_qos_record_trace(u8 *s, va_list *args)
Definition: qos_record.c:257

(constructor) VLIB_REGISTER_NODE (mpls_qos_record_node)

Definition at line 376 of file qos_record.c.

◆ qos_record_command

vlib_cli_command_t qos_record_command
static
Initial value:
= {
.path = "qos record",
.short_help = "qos record <record-source> <INTERFACE> [disable]",
.function = qos_record_cli,
.is_mp_safe = 1,
}
static clib_error_t * qos_record_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: qos_record.c:515

(constructor) VLIB_CLI_COMMAND (qos_record_command)

Definition at line 564 of file qos_record.c.

◆ qos_record_configs

u8* qos_record_configs[QOS_N_SOURCES]
static

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:
= {
.function = vlan_ip4_qos_record,
.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",
},
}
unsigned int u32
Definition: types.h:88
static u8 * format_qos_record_trace(u8 *s, va_list *args)
Definition: qos_record.c:257
static uword vlan_ip4_qos_record(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: qos_record.c:293

(constructor) VLIB_REGISTER_NODE (vlan_ip4_qos_record_node)

Definition at line 421 of file qos_record.c.

◆ vlan_ip6_qos_record_node

vlib_node_registration_t vlan_ip6_qos_record_node
Initial value:
= {
.function = vlan_ip6_qos_record,
.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",
},
}
unsigned int u32
Definition: types.h:88
static u8 * format_qos_record_trace(u8 *s, va_list *args)
Definition: qos_record.c:257
static uword vlan_ip6_qos_record(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: qos_record.c:301

(constructor) VLIB_REGISTER_NODE (vlan_ip6_qos_record_node)

Definition at line 449 of file qos_record.c.

◆ vlan_mpls_qos_record_node

vlib_node_registration_t vlan_mpls_qos_record_node
Initial value:
= {
.function = vlan_mpls_qos_record,
.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",
},
}
unsigned int u32
Definition: types.h:88
static u8 * format_qos_record_trace(u8 *s, va_list *args)
Definition: qos_record.c:257
static uword vlan_mpls_qos_record(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: qos_record.c:309

(constructor) VLIB_REGISTER_NODE (vlan_mpls_qos_record_node)

Definition at line 398 of file qos_record.c.