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

Go to the source code of this file.

Data Structures

struct  qos_store_t_
 QoS Store configuration. More...
 

Typedefs

typedef struct qos_store_t_ qos_store_t
 QoS Store configuration. More...
 

Functions

static void qos_store_feature_config (u32 sw_if_index, qos_source_t input_source, u8 enable, qos_bits_t value)
 
int qos_store_enable (u32 sw_if_index, qos_source_t input_source, qos_bits_t value)
 
int qos_store_disable (u32 sw_if_index, qos_source_t input_source)
 
void qos_store_walk (qos_store_walk_cb_t fn, void *c)
 
static clib_error_tqos_store_ip_interface_add_del (vnet_main_t *vnm, u32 sw_if_index, u32 is_add)
 
 VNET_SW_INTERFACE_ADD_DEL_FUNCTION (qos_store_ip_interface_add_del)
 
clib_error_tqos_store_init (vlib_main_t *vm)
 
static clib_error_tqos_store_cli (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static void qos_store_show_one_interface (vlib_main_t *vm, u32 sw_if_index)
 
static clib_error_tqos_store_show (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

qos_store_tqos_store_configs [QOS_N_SOURCES]
 Per-interface, per-protocol vector of feature on/off configurations. More...
 
static vlib_cli_command_t qos_store_command
 (constructor) VLIB_CLI_COMMAND (qos_store_command) More...
 
static vlib_cli_command_t qos_store_show_command
 (constructor) VLIB_CLI_COMMAND (qos_store_show_command) More...
 

Typedef Documentation

◆ qos_store_t

typedef struct qos_store_t_ qos_store_t

QoS Store configuration.

Function Documentation

◆ qos_store_cli()

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

Definition at line 161 of file qos_store.c.

+ Here is the call graph for this function:

◆ qos_store_disable()

int qos_store_disable ( u32  sw_if_index,
qos_source_t  input_source 
)

Definition at line 88 of file qos_store.c.

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

◆ qos_store_enable()

int qos_store_enable ( u32  sw_if_index,
qos_source_t  input_source,
qos_bits_t  value 
)

Definition at line 64 of file qos_store.c.

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

◆ qos_store_feature_config()

static void qos_store_feature_config ( u32  sw_if_index,
qos_source_t  input_source,
u8  enable,
qos_bits_t  value 
)
static

Definition at line 35 of file qos_store.c.

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

◆ qos_store_init()

clib_error_t* qos_store_init ( vlib_main_t vm)

Definition at line 153 of file qos_store.c.

◆ qos_store_ip_interface_add_del()

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

Definition at line 134 of file qos_store.c.

+ Here is the call graph for this function:

◆ qos_store_show()

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

Definition at line 256 of file qos_store.c.

+ Here is the call graph for this function:

◆ qos_store_show_one_interface()

static void qos_store_show_one_interface ( vlib_main_t vm,
u32  sw_if_index 
)
static

Definition at line 224 of file qos_store.c.

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

◆ qos_store_walk()

void qos_store_walk ( qos_store_walk_cb_t  fn,
void *  c 
)

Definition at line 111 of file qos_store.c.

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

◆ VNET_SW_INTERFACE_ADD_DEL_FUNCTION()

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

Variable Documentation

◆ qos_store_command

vlib_cli_command_t qos_store_command
static
Initial value:
= {
.path = "qos store",
.short_help = "qos store <store-source> <INTERFACE> [disable]",
.function = qos_store_cli,
.is_mp_safe = 1,
}
static clib_error_t * qos_store_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: qos_store.c:161

(constructor) VLIB_CLI_COMMAND (qos_store_command)

Definition at line 215 of file qos_store.c.

◆ qos_store_configs

qos_store_t* qos_store_configs[QOS_N_SOURCES]

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

Definition at line 32 of file qos_store.c.

◆ qos_store_show_command

vlib_cli_command_t qos_store_show_command
static
Initial value:
= {
.path = "show qos store",
.short_help = "show qos store [interface]",
.function = qos_store_show,
.is_mp_safe = 1,
}
static clib_error_t * qos_store_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: qos_store.c:256

(constructor) VLIB_CLI_COMMAND (qos_store_show_command)

Definition at line 299 of file qos_store.c.