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

Go to the source code of this file.

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)
 
void qos_record_walk (qos_record_walk_cb_t fn, void *c)
 
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)
 
clib_error_tqos_record_init (vlib_main_t *vm)
 
static clib_error_tqos_record_cli (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static void qos_record_show_one_interface (vlib_main_t *vm, u32 sw_if_index)
 
static clib_error_tqos_record_show (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

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]
 
static vlib_cli_command_t qos_record_command
 (constructor) VLIB_CLI_COMMAND (qos_record_command) More...
 
static vlib_cli_command_t qos_record_show_command
 (constructor) VLIB_CLI_COMMAND (qos_record_show_command) More...
 

Function Documentation

◆ 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 162 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_init()

clib_error_t* qos_record_init ( vlib_main_t vm)

Definition at line 144 of file qos_record.c.

+ Here is the call 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 125 of file qos_record.c.

+ Here is the call graph for this function:

◆ qos_record_show()

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

Definition at line 250 of file qos_record.c.

+ Here is the call graph for this function:

◆ qos_record_show_one_interface()

static void qos_record_show_one_interface ( vlib_main_t vm,
u32  sw_if_index 
)
static

Definition at line 220 of file qos_record.c.

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

◆ qos_record_walk()

void qos_record_walk ( qos_record_walk_cb_t  fn,
void *  c 
)

Definition at line 104 of file qos_record.c.

+ Here is the caller graph for this function:

◆ 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

◆ l2_qos_input_next

u32 l2_qos_input_next[QOS_N_SOURCES][32]

Definition at line 28 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:162

(constructor) VLIB_CLI_COMMAND (qos_record_command)

Definition at line 211 of file qos_record.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.

◆ qos_record_show_command

vlib_cli_command_t qos_record_show_command
static
Initial value:
= {
.path = "show qos record",
.short_help = "show qos record [interface]",
.function = qos_record_show,
.is_mp_safe = 1,
}
static clib_error_t * qos_record_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: qos_record.c:250

(constructor) VLIB_CLI_COMMAND (qos_record_show_command)

Definition at line 293 of file qos_record.c.