FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
qos_mark.c File Reference
+ Include dependency graph for qos_mark.c:

Go to the source code of this file.

Functions

void qos_mark_ip_enable_disable (u32 sw_if_index, u8 enable)
 
void qos_mark_vlan_enable_disable (u32 sw_if_index, u8 enable)
 
void qos_mark_mpls_enable_disable (u32 sw_if_index, u8 enable)
 
static void qos_egress_map_feature_config (u32 sw_if_index, qos_source_t qs, u8 enable)
 
int qos_mark_enable (u32 sw_if_index, qos_source_t output_source, qos_egress_map_id_t mid)
 enable QoS marking by associating a MAP with an interface. More...
 
int qos_mark_disable (u32 sw_if_index, qos_source_t output_source)
 
void qos_mark_walk (qos_mark_walk_cb_t fn, void *c)
 
static clib_error_tqos_mark_cli (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static void qos_mark_show_one_interface (vlib_main_t *vm, u32 sw_if_index)
 
static clib_error_tqos_mark_show (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

index_tqos_mark_configs [QOS_N_SOURCES]
 per-interface vector of which MAP is used by which interface for each output source More...
 
static vlib_cli_command_t qos_egress_map_interface_command
 (constructor) VLIB_CLI_COMMAND (qos_egress_map_interface_command) More...
 
static vlib_cli_command_t qos_mark_show_command
 (constructor) VLIB_CLI_COMMAND (qos_mark_show_command) More...
 

Function Documentation

◆ qos_egress_map_feature_config()

static void qos_egress_map_feature_config ( u32  sw_if_index,
qos_source_t  qs,
u8  enable 
)
static

Definition at line 59 of file qos_mark.c.

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

◆ qos_mark_cli()

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

Definition at line 139 of file qos_mark.c.

+ Here is the call graph for this function:

◆ qos_mark_disable()

int qos_mark_disable ( u32  sw_if_index,
qos_source_t  output_source 
)

Definition at line 103 of file qos_mark.c.

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

◆ qos_mark_enable()

int qos_mark_enable ( u32  sw_if_index,
qos_source_t  output_source,
qos_egress_map_id_t  tid 
)

enable QoS marking by associating a MAP with an interface.

The output_source specifies which protocol/header the QoS value will be written into

Definition at line 79 of file qos_mark.c.

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

◆ qos_mark_ip_enable_disable()

void qos_mark_ip_enable_disable ( u32  sw_if_index,
u8  enable 
)

Definition at line 28 of file qos_mark.c.

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

◆ qos_mark_mpls_enable_disable()

void qos_mark_mpls_enable_disable ( u32  sw_if_index,
u8  enable 
)

Definition at line 52 of file qos_mark.c.

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

◆ qos_mark_show()

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

Definition at line 232 of file qos_mark.c.

+ Here is the call graph for this function:

◆ qos_mark_show_one_interface()

static void qos_mark_show_one_interface ( vlib_main_t vm,
u32  sw_if_index 
)
static

Definition at line 200 of file qos_mark.c.

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

◆ qos_mark_vlan_enable_disable()

void qos_mark_vlan_enable_disable ( u32  sw_if_index,
u8  enable 
)

Definition at line 37 of file qos_mark.c.

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

◆ qos_mark_walk()

void qos_mark_walk ( qos_mark_walk_cb_t  fn,
void *  c 
)

Definition at line 121 of file qos_mark.c.

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

Variable Documentation

◆ qos_egress_map_interface_command

vlib_cli_command_t qos_egress_map_interface_command
static
Initial value:
= {
.path = "qos mark",
.short_help = "qos mark <SOURCE> <INTERFACE> id <MAP>",
.function = qos_mark_cli,
.is_mp_safe = 1,
}

(constructor) VLIB_CLI_COMMAND (qos_egress_map_interface_command)

Definition at line 191 of file qos_mark.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.

◆ qos_mark_show_command

vlib_cli_command_t qos_mark_show_command
static
Initial value:
= {
.path = "show qos mark",
.short_help = "show qos mark [interface]",
.function = qos_mark_show,
.is_mp_safe = 1,
}

(constructor) VLIB_CLI_COMMAND (qos_mark_show_command)

Definition at line 275 of file qos_mark.c.

qos_mark_cli
static clib_error_t * qos_mark_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: qos_mark.c:139
qos_mark_show
static clib_error_t * qos_mark_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: qos_mark.c:232