|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
40 #include <sys/types.h>
49 u32 *march_variant_by_node = 0;
62 if (!
unformat (&sub_input,
"variant %U",
65 "please specify a valid node variant");
70 march_variant_by_node[
i] = march_variant;
83 if (!
unformat (&sub_input,
"variant %U",
86 "please specify a valid node variant");
89 march_variant_by_node[
node_index] = march_variant;
100 if (march_variant_by_node)
103 if (march_variant_by_node[
i] != ~0)
static clib_error_t * vlib_node_config(vlib_main_t *vm, unformat_input_t *input)
int vlib_node_set_march_variant(vlib_main_t *vm, u32 node_index, clib_march_variant_type_t march_variant)
#define clib_error_return(e, args...)
vlib_node_main_t node_main
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
#define VLIB_CONFIG_FUNCTION(x, n,...)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
unformat_function_t unformat_vlib_node
#define vec_foreach_index(var, v)
Iterate over vector indices.
uword unformat_vlib_cli_sub_input(unformat_input_t *i, va_list *args)
#define vec_free(V)
Free vector's memory (no header).
clib_march_variant_type_t
#define vec_validate_init_empty(V, I, INIT)
Make sure vector is long enough for given index and initialize empty space (no header,...
u32 node_fn_default_march_variant
unformat_function_t unformat_vlib_node_variant