39 sw_if_index, enable, NULL, 0);
42 sw_if_index, enable, NULL, 0);
48 sw_if_index, enable, NULL, 0);
52 "vlan-ip6-qos-record",
53 sw_if_index, enable, NULL, 0);
55 "vlan-ip4-qos-record",
56 sw_if_index, enable, NULL, 0);
58 sw_if_index, enable, NULL, 0);
84 return VNET_API_ERROR_NO_MATCHING_INTERFACE;
87 return VNET_API_ERROR_VALUE_EXIST;
111 fn (sw_if_index, qs, c);
176 else if (
unformat (input,
"enable"))
178 else if (
unformat (input,
"disable"))
184 if (~0 == sw_if_index)
208 .path =
"qos record",
209 .short_help =
"qos record <record-source> <INTERFACE> [disable]",
262 if (~0 == sw_if_index)
271 for (ii = 0; ii < n_ints; ii++)
290 .path =
"show qos record",
291 .short_help =
"show qos record [interface]",
#define vec_validate(V, I)
Make sure vector is long enough for given index (no header, unspecified alignment) ...
#define vec_foreach_index(var, v)
Iterate over vector indices.
void qos_record_walk(qos_record_walk_cb_t fn, void *c)
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.
static void qos_record_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
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)
vl_api_qos_source_t input_source
u8 * format_qos_source(u8 *s, va_list *args)
format/unformat QoS source types
static clib_error_t * qos_record_ip_interface_add_del(vnet_main_t *vnm, u32 sw_if_index, u32 is_add)
vlib_node_t * vlib_get_node_by_name(vlib_main_t *vm, u8 *name)
u32 l2_qos_input_next[QOS_N_SOURCES][32]
clib_error_t * qos_record_init(vlib_main_t *vm)
static void qos_record_feature_config(u32 sw_if_index, qos_source_t input_source, u8 enable)
walk_rc_t(* qos_record_walk_cb_t)(u32 sw_if_index, qos_source_t input_source, void *ctx)
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_main_t vlib_node_runtime_t * node
#define VLIB_CLI_COMMAND(x,...)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
int qos_record_disable(u32 sw_if_index, qos_source_t input_source)
IPv6 to IPv4 translation.
void ip_feature_enable_disable(ip_address_family_t af, ip_sub_address_family_t safi, ip_feature_location_t loc, const char *feature_name, u32 sw_if_index, int enable, void *feature_config, u32 n_feature_config_bytes)
static clib_error_t * qos_record_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#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)
vl_api_interface_index_t sw_if_index
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.