|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
70 return VNET_API_ERROR_UNIMPLEMENTED;
76 if (0 ==
qst->qst_n_cfgs)
93 return VNET_API_ERROR_NO_MATCHING_INTERFACE;
97 if (0 ==
qst->qst_n_cfgs)
98 return VNET_API_ERROR_VALUE_EXIST;
102 if (0 ==
qst->qst_n_cfgs)
123 if (0 !=
qst->qst_n_cfgs)
180 else if (
unformat (input,
"enable"))
182 else if (
unformat (input,
"disable"))
217 .short_help =
"qos store <store-source> <INTERFACE> [disable]",
281 for (ii = 0; ii < n_ints; ii++)
300 .path =
"show qos store",
301 .short_help =
"show qos store [interface]",
@ QOS_SOURCE_EXT
Some external source, e.g.
static void qos_store_show_one_interface(vlib_main_t *vm, u32 sw_if_index)
uword unformat_qos_source(unformat_input_t *input, va_list *args)
static clib_error_t * qos_store_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define clib_error_return(e, args...)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
clib_error_t * qos_store_init(vlib_main_t *vm)
void qos_store_walk(qos_store_walk_cb_t fn, void *c)
u8 qos_bits_t
Type, er, safety for us water based entities.
#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
static void qos_store_feature_config(u32 sw_if_index, qos_source_t input_source, u8 enable, qos_bits_t value)
qos_store_t * qos_store_configs[QOS_N_SOURCES]
Per-interface, per-protocol vector of feature on/off configurations.
vnet_main_t * vnet_get_main(void)
static vlib_cli_command_t qos_store_show_command
(constructor) VLIB_CLI_COMMAND (qos_store_show_command)
static vlib_cli_command_t qos_store_command
(constructor) VLIB_CLI_COMMAND (qos_store_command)
#define vec_foreach_index(var, v)
Iterate over vector indices.
static void qst(qst_t *q, char *base, char *max)
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,...)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
enum qos_source_t_ qos_source_t
QoS types.
struct qos_store_t_ qos_store_t
QoS Store configuration.
static clib_error_t * qos_store_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
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)
walk_rc_t(* qos_store_walk_cb_t)(u32 sw_if_index, qos_source_t input_source, qos_bits_t value, void *ctx)
static clib_error_t * qos_store_ip_interface_add_del(vnet_main_t *vnm, u32 sw_if_index, u32 is_add)
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
VNET_SW_INTERFACE_ADD_DEL_FUNCTION(qos_store_ip_interface_add_del)
#define QOS_N_SOURCES
The maximum number of sources.
vl_api_interface_index_t sw_if_index
int qos_store_disable(u32 sw_if_index, qos_source_t input_source)
int qos_store_enable(u32 sw_if_index, qos_source_t input_source, qos_bits_t value)