FD.io VPP  v19.04.4-rc0-5-ge88582fac
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)
 
static clib_error_tqos_mark_cli (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...
 

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 121 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_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:

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,
}
static clib_error_t * qos_mark_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: qos_mark.c:121

(constructor) VLIB_CLI_COMMAND (qos_egress_map_interface_command)

Definition at line 173 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.