|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
52 "vlan-ip6-qos-record",
55 "vlan-ip4-qos-record",
84 return VNET_API_ERROR_NO_MATCHING_INTERFACE;
87 return VNET_API_ERROR_VALUE_EXIST;
176 else if (
unformat (input,
"enable"))
178 else if (
unformat (input,
"disable"))
208 .path =
"qos record",
209 .short_help =
"qos record <record-source> <INTERFACE> [disable]",
271 for (ii = 0; ii < n_ints; ii++)
290 .path =
"show qos record",
291 .short_help =
"show qos record [interface]",
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 vlib_cli_command_t qos_record_show_command
(constructor) VLIB_CLI_COMMAND (qos_record_show_command)
@ QOS_SOURCE_EXT
Some external source, e.g.
uword unformat_qos_source(unformat_input_t *input, va_list *args)
clib_error_t * qos_record_init(vlib_main_t *vm)
static void qos_record_show_one_interface(vlib_main_t *vm, u32 sw_if_index)
walk_rc_t(* qos_record_walk_cb_t)(u32 sw_if_index, qos_source_t input_source, void *ctx)
int qos_record_enable(u32 sw_if_index, qos_source_t input_source)
vlib_main_t vlib_node_runtime_t * node
#define clib_error_return(e, args...)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static clib_error_t * qos_record_ip_interface_add_del(vnet_main_t *vnm, u32 sw_if_index, u32 is_add)
#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
vnet_main_t * vnet_get_main(void)
#define vec_foreach_index(var, v)
Iterate over vector indices.
static clib_error_t * qos_record_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
void qos_record_walk(qos_record_walk_cb_t fn, void *c)
u8 * qos_record_configs[QOS_N_SOURCES]
Per-interface, per-protocol vector of feature on/off configurations.
vl_api_qos_source_t input_source
#define vec_validate(V, I)
Make sure vector is long enough for given index (no header, unspecified alignment)
#define VLIB_CLI_COMMAND(x,...)
IPv6 to IPv4 translation.
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
u32 l2_qos_input_next[QOS_N_SOURCES][32]
enum qos_source_t_ qos_source_t
QoS types.
static void qos_record_feature_config(u32 sw_if_index, qos_source_t input_source, u8 enable)
vlib_node_t * vlib_get_node_by_name(vlib_main_t *vm, u8 *name)
format_function_t format_vnet_sw_if_index_name
unformat_function_t unformat_vnet_sw_interface
#define VLIB_INIT_FUNCTION(x)
#define FOR_EACH_QOS_SOURCE(_src)
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)
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
#define QOS_N_SOURCES
The maximum number of sources.
VNET_SW_INTERFACE_ADD_DEL_FUNCTION(qos_record_ip_interface_add_del)
static clib_error_t * qos_record_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
int qos_record_disable(u32 sw_if_index, qos_source_t input_source)
static vlib_cli_command_t qos_record_command
(constructor) VLIB_CLI_COMMAND (qos_record_command)
vl_api_interface_index_t sw_if_index
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.