38 sw_if_index, enable,
NULL, 0);
40 sw_if_index, enable,
NULL, 0);
42 sw_if_index, enable,
NULL, 0);
44 sw_if_index, enable,
NULL, 0);
50 sw_if_index, enable,
NULL, 0);
54 sw_if_index, enable,
NULL, 0);
56 sw_if_index, enable,
NULL, 0);
58 sw_if_index, enable,
NULL, 0);
60 sw_if_index, enable,
NULL, 0);
62 sw_if_index, enable,
NULL, 0);
88 return VNET_API_ERROR_NO_MATCHING_INTERFACE;
91 return VNET_API_ERROR_VALUE_EXIST;
163 else if (
unformat (input,
"enable"))
165 else if (
unformat (input,
"disable"))
171 if (~0 == sw_if_index)
195 .path =
"qos record",
196 .short_help =
"qos record <record-source> <INTERFACE> [disable]",
#define vec_validate(V, I)
Make sure vector is long enough for given index (no header, unspecified alignment) ...
vnet_main_t * vnet_get_main(void)
VNET_SW_INTERFACE_ADD_DEL_FUNCTION(qos_record_ip_interface_add_del)
u8 * qos_record_configs[QOS_N_SOURCES]
Per-interface, per-protocol vector of feature on/off configurations.
clib_error_t * l2_ip_qos_init(vlib_main_t *vm)
unformat_function_t unformat_vnet_sw_interface
Some external source, e.g.
static clib_error_t * qos_record_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define VLIB_INIT_FUNCTION(x)
#define clib_error_return(e, args...)
#define FOR_EACH_QOS_SOURCE(_src)
static clib_error_t * qos_record_ip_interface_add_del(vnet_main_t *vnm, u32 sw_if_index, u32 is_add)
u32 l2_qos_input_next[QOS_N_SOURCES][32]
static void qos_record_feature_config(u32 sw_if_index, qos_source_t input_source, u8 enable)
enum qos_source_t_ qos_source_t
QoS types.
static void feat_bitmap_init_next_nodes(vlib_main_t *vm, u32 node_index, u32 num_features, char **feat_names, u32 *next_nodes)
Initialize the feature next-node indexes of a graph node.
vlib_node_t * vlib_get_node_by_name(vlib_main_t *vm, u8 *name)
#define VLIB_CLI_COMMAND(x,...)
int qos_record_disable(u32 sw_if_index, qos_source_t input_source)
IPv6 to IPv4 translation.
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
int qos_record_enable(u32 sw_if_index, qos_source_t input_source)
uword unformat_qos_source(unformat_input_t *input, va_list *args)
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.