Go to the source code of this file.
|
static clib_error_t * | vnet_feature_init (vlib_main_t *vm) |
|
u8 | vnet_get_feature_arc_index (const char *s) |
|
vnet_feature_registration_t * | vnet_get_feature_reg (const char *arc_name, const char *node_name) |
|
u32 | vnet_get_feature_index (u8 arc, const char *s) |
|
int | vnet_feature_enable_disable_with_index (u8 arc_index, u32 feature_index, u32 sw_if_index, int enable_disable, void *feature_config, u32 n_feature_config_bytes) |
|
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) |
|
static int | feature_cmp (void *a1, void *a2) |
|
static clib_error_t * | show_features_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
| Display the set of available driver features. More...
|
|
void | vnet_interface_features_show (vlib_main_t *vm, u32 sw_if_index, int verbose) |
| Display the set of driver features configured on a specific interface Called by "show interface" handler. More...
|
|
static clib_error_t * | set_interface_features_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
◆ feature_cmp()
static int feature_cmp |
( |
void * |
a1, |
|
|
void * |
a2 |
|
) |
| |
|
static |
◆ set_interface_features_command_fn()
◆ show_features_command_fn()
Display the set of available driver features.
Useful for verifying that expected features are present
Definition at line 308 of file feature.c.
◆ vnet_feature_enable_disable()
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 |
|
) |
| |
◆ vnet_feature_enable_disable_with_index()
int vnet_feature_enable_disable_with_index |
( |
u8 |
arc_index, |
|
|
u32 |
feature_index, |
|
|
u32 |
sw_if_index, |
|
|
int |
enable_disable, |
|
|
void * |
feature_config, |
|
|
u32 |
n_feature_config_bytes |
|
) |
| |
◆ vnet_feature_init()
◆ vnet_get_feature_arc_index()
u8 vnet_get_feature_arc_index |
( |
const char * |
s | ) |
|
◆ vnet_get_feature_index()
u32 vnet_get_feature_index |
( |
u8 |
arc, |
|
|
const char * |
s |
|
) |
| |
◆ vnet_get_feature_reg()
◆ vnet_interface_features_show()
void vnet_interface_features_show |
( |
vlib_main_t * |
vm, |
|
|
u32 |
sw_if_index, |
|
|
int |
verbose |
|
) |
| |
Display the set of driver features configured on a specific interface Called by "show interface" handler.
Definition at line 379 of file feature.c.
◆ feature_main
◆ set_interface_feature_command
Initial value:= {
.path = "set interface feature",
.short_help = "set interface feature <intfc> <feature_name> arc <arc_name> "
"[disable]",
}
static clib_error_t * set_interface_features_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (set_interface_feature_command)
Definition at line 521 of file feature.c.
◆ show_features_command
Initial value:= {
.path = "show features",
.short_help = "show features",
}
static clib_error_t * show_features_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Display the set of available driver features.
(constructor) VLIB_CLI_COMMAND (show_features_command)
Definition at line 367 of file feature.c.