FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
qos_egress_map.c File Reference
+ Include dependency graph for qos_egress_map.c:

Go to the source code of this file.

Functions

index_t qos_egress_map_find (qos_egress_map_id_t mid)
 Get the VPP QoS map index from the user's map-ID. More...
 
qos_egress_map_tqos_egress_map_find_i (qos_egress_map_id_t mid)
 
static qos_egress_map_tqos_egress_map_find_or_create (qos_egress_map_id_t mid)
 
void qos_egress_map_update (qos_egress_map_id_t mid, qos_source_t input_source, qos_bits_t *values)
 Add a qos-egress map to an interface. More...
 
void qos_egress_map_delete (qos_egress_map_id_t mid)
 
static clib_error_tqos_egress_map_update_cli (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
u8format_qos_egress_map (u8 *s, va_list *args)
 
static clib_error_tqos_egress_map_show (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

qos_egress_map_tqem_pool
 Pool from which to allocate table. More...
 
uwordqem_db
 DB to map user table-IDs to internal table indicies. More...
 
static vlib_cli_command_t qos_egress_map_update_command
 (constructor) VLIB_CLI_COMMAND (qos_egress_map_update_command) More...
 
static vlib_cli_command_t qos_egress_map_show_command
 (constructor) VLIB_CLI_COMMAND (qos_egress_map_show_command) More...
 

Function Documentation

◆ format_qos_egress_map()

u8* format_qos_egress_map ( u8 s,
va_list *  args 
)

Definition at line 163 of file qos_egress_map.c.

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

◆ qos_egress_map_delete()

void qos_egress_map_delete ( qos_egress_map_id_t  mid)

Definition at line 96 of file qos_egress_map.c.

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

◆ qos_egress_map_find()

index_t qos_egress_map_find ( qos_egress_map_id_t  mid)

Get the VPP QoS map index from the user's map-ID.

Definition at line 32 of file qos_egress_map.c.

+ Here is the caller graph for this function:

◆ qos_egress_map_find_i()

qos_egress_map_t* qos_egress_map_find_i ( qos_egress_map_id_t  mid)

Definition at line 45 of file qos_egress_map.c.

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

◆ qos_egress_map_find_or_create()

static qos_egress_map_t* qos_egress_map_find_or_create ( qos_egress_map_id_t  mid)
static

Definition at line 60 of file qos_egress_map.c.

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

◆ qos_egress_map_show()

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

Definition at line 186 of file qos_egress_map.c.

+ Here is the call graph for this function:

◆ qos_egress_map_update()

void qos_egress_map_update ( qos_egress_map_id_t  tid,
qos_source_t  input_source,
qos_bits_t values 
)

Add a qos-egress map to an interface.

If sw_if_index = ~0 then the configuration is for the 'default' table. If the table is ~0, this is a removal. the egress mapping is applied. For example, is output is MPLS then the QoS markings will occur for MPLS packets.

Definition at line 84 of file qos_egress_map.c.

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

◆ qos_egress_map_update_cli()

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

Definition at line 110 of file qos_egress_map.c.

+ Here is the call graph for this function:

Variable Documentation

◆ qem_db

uword* qem_db

DB to map user table-IDs to internal table indicies.

Definition at line 29 of file qos_egress_map.c.

◆ qem_pool

qos_egress_map_t* qem_pool

Pool from which to allocate table.

Data-plane functions.

Definition at line 24 of file qos_egress_map.c.

◆ qos_egress_map_show_command

vlib_cli_command_t qos_egress_map_show_command
static
Initial value:
= {
.path = "show qos egress map",
.short_help = "show qos egress map id %d",
.function = qos_egress_map_show,
.is_mp_safe = 1,
}
static clib_error_t * qos_egress_map_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (qos_egress_map_show_command)

Definition at line 248 of file qos_egress_map.c.

◆ qos_egress_map_update_command

vlib_cli_command_t qos_egress_map_update_command
static
Initial value:
= {
.path = "qos egress map",
.short_help = "qos egress map id %d [delete] {[SOURCE][INPUT]=OUTPUT}",
.is_mp_safe = 1,
}
static clib_error_t * qos_egress_map_update_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (qos_egress_map_update_command)

Definition at line 154 of file qos_egress_map.c.