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;
136 if (
unformat (input,
"id %d", &map_id))
138 else if (
unformat (input,
"disable"))
149 if (~0 == sw_if_index)
175 .short_help =
"qos mark <SOURCE> <INTERFACE> id <MAP>",
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.
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)
unformat_function_t unformat_vnet_sw_interface
int qos_mark_disable(u32 sw_if_index, qos_source_t output_source)
Some external source, e.g.
#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.
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...
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)
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.