|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
90 return VNET_API_ERROR_NO_SUCH_TABLE;
106 return VNET_API_ERROR_NO_MATCHING_INTERFACE;
108 return VNET_API_ERROR_VALUE_EXIST;
156 else if (
unformat (input,
"disable"))
193 .short_help =
"qos mark <SOURCE> <INTERFACE> id <MAP>",
257 for (ii = 0; ii < n_ints; ii++)
276 .path =
"show qos mark",
277 .short_help =
"show qos mark [interface]",
@ QOS_SOURCE_EXT
Some external source, e.g.
uword unformat_qos_source(unformat_input_t *input, va_list *args)
static clib_error_t * qos_mark_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
void qos_mark_walk(qos_mark_walk_cb_t fn, void *c)
static vlib_cli_command_t qos_egress_map_interface_command
(constructor) VLIB_CLI_COMMAND (qos_egress_map_interface_command)
#define clib_error_return(e, args...)
index_t qos_egress_map_find(qos_egress_map_id_t mid)
Get the VPP QoS map index from the user's map-ID.
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
vl_api_qos_source_t output_source
index_t * qos_mark_configs[QOS_N_SOURCES]
per-interface vector of which MAP is used by which interface for each output source
static_always_inline void clib_memset_u32(void *p, u32 val, uword count)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
u8 * format_qos_source(u8 *s, va_list *args)
format/unformat QoS source types
walk_rc_t(* qos_mark_walk_cb_t)(u32 sw_if_index, u32 map_id, qos_source_t input_source, void *ctx)
vnet_main_t * vnet_get_main(void)
void qos_mark_vlan_enable_disable(u32 sw_if_index, u8 enable)
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
#define vec_foreach_index(var, v)
Iterate over vector indices.
#define VLIB_CLI_COMMAND(x,...)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
enum qos_source_t_ qos_source_t
QoS types.
static void qos_mark_show_one_interface(vlib_main_t *vm, u32 sw_if_index)
static void qos_egress_map_feature_config(u32 sw_if_index, qos_source_t qs, u8 enable)
format_function_t format_vnet_sw_if_index_name
unformat_function_t unformat_vnet_sw_interface
#define vec_validate_init_empty(V, I, INIT)
Make sure vector is long enough for given index and initialize empty space (no header,...
#define FOR_EACH_QOS_SOURCE(_src)
qos_egress_map_id_t qos_egress_map_get_id(index_t qemi)
int vnet_feature_enable_disable(const char *arc_name, const char *node_name, u32 sw_if_index, int enable_disable, void *feature_config, u32 n_feature_config_bytes)
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.
int qos_mark_disable(u32 sw_if_index, qos_source_t output_source)
u32 qos_egress_map_id_t
A QOS egress map translates from the COS bits stored in the packet's meta-data into a per-protocol CO...
#define QOS_N_SOURCES
The maximum number of sources.
static vlib_cli_command_t qos_mark_show_command
(constructor) VLIB_CLI_COMMAND (qos_mark_show_command)
void qos_mark_mpls_enable_disable(u32 sw_if_index, u8 enable)
#define INDEX_INVALID
Invalid index - used when no index is known blazoned capitals INVALID speak volumes where ~0 does not...
vl_api_interface_index_t sw_if_index
static clib_error_t * qos_mark_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
void qos_mark_ip_enable_disable(u32 sw_if_index, u8 enable)