31 sw_if_index, enable, NULL, 0);
33 sw_if_index, enable, NULL, 0);
44 sw_if_index, enable, NULL, 0);
46 sw_if_index, enable, NULL, 0);
48 sw_if_index, enable, NULL, 0);
55 sw_if_index, enable, NULL, 0);
90 return VNET_API_ERROR_NO_SUCH_TABLE;
106 return VNET_API_ERROR_NO_MATCHING_INTERFACE;
108 return VNET_API_ERROR_VALUE_EXIST;
154 if (
unformat (input,
"id %d", &map_id))
156 else if (
unformat (input,
"disable"))
167 if (~0 == sw_if_index)
193 .short_help =
"qos mark <SOURCE> <INTERFACE> id <MAP>",
248 if (~0 == sw_if_index)
257 for (ii = 0; ii < n_ints; ii++)
276 .path =
"show qos mark",
277 .short_help =
"show qos mark [interface]",
#define vec_foreach_index(var, v)
Iterate over vector indices.
vl_api_qos_source_t output_source
vnet_main_t * vnet_get_main(void)
index_t qos_egress_map_find(qos_egress_map_id_t mid)
Get the VPP QoS map index from the user's map-ID.
qos_egress_map_id_t qos_egress_map_get_id(index_t qemi)
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
void qos_mark_vlan_enable_disable(u32 sw_if_index, u8 enable)
void qos_mark_ip_enable_disable(u32 sw_if_index, u8 enable)
static void qos_mark_show_one_interface(vlib_main_t *vm, u32 sw_if_index)
unformat_function_t unformat_vnet_sw_interface
format_function_t format_vnet_sw_if_index_name
int qos_mark_disable(u32 sw_if_index, qos_source_t output_source)
Some external source, e.g.
vl_api_interface_index_t sw_if_index
#define clib_error_return(e, args...)
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.
#define FOR_EACH_QOS_SOURCE(_src)
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)
static clib_error_t * qos_mark_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
enum qos_source_t_ qos_source_t
QoS types.
static void qos_egress_map_feature_config(u32 sw_if_index, qos_source_t qs, u8 enable)
#define VLIB_CLI_COMMAND(x,...)
index_t * qos_mark_configs[QOS_N_SOURCES]
per-interface vector of which MAP is used by which interface for each output source ...
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
#define INDEX_INVALID
Invalid index - used when no index is known blazoned capitals INVALID speak volumes where ~0 does not...
void qos_mark_walk(qos_mark_walk_cb_t fn, void *c)
static clib_error_t * qos_mark_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define vec_validate_init_empty(V, I, INIT)
Make sure vector is long enough for given index and initialize empty space (no header, unspecified alignment)
void qos_mark_mpls_enable_disable(u32 sw_if_index, u8 enable)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
uword unformat_qos_source(unformat_input_t *input, va_list *args)
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...
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)
#define QOS_N_SOURCES
The maximum number of sources.
static_always_inline void clib_memset_u32(void *p, u32 val, uword count)