FD.io VPP  v16.12-rc0-308-g931be3a
Vector Packet Processing
feature.c File Reference
+ Include dependency graph for feature.c:

Go to the source code of this file.

Functions

static clib_error_tvnet_feature_init (vlib_main_t *vm)
 
void vnet_config_update_feature_count (vnet_feature_main_t *fm, u16 arc, u32 sw_if_index, int is_add)
 
u16 vnet_feature_arc_index_from_node_name (const char *s)
 
u32 vnet_feature_index_from_node_name (u16 arc, const char *s)
 
void 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 clib_error_tshow_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)
 Display the set of driver features configured on a specific interface Called by "show interface" handler. More...
 

Variables

vnet_feature_main_t feature_main
 
static vlib_cli_command_t show_features_command
 (constructor) VLIB_CLI_COMMAND (show_features_command) More...
 

Function Documentation

static clib_error_t* show_features_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Display the set of available driver features.

Useful for verifying that expected features are present

Definition at line 224 of file feature.c.

+ Here is the call graph for this function:

void vnet_config_update_feature_count ( vnet_feature_main_t fm,
u16  arc,
u32  sw_if_index,
int  is_add 
)

Definition at line 136 of file feature.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u16 vnet_feature_arc_index_from_node_name ( const char *  s)

Definition at line 155 of file feature.c.

+ Here is the caller graph for this function:

void 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 
)

Definition at line 185 of file feature.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 vnet_feature_index_from_node_name ( u16  arc,
const char *  s 
)

Definition at line 170 of file feature.c.

+ Here is the caller graph for this function:

static clib_error_t* vnet_feature_init ( vlib_main_t vm)
static

Definition at line 21 of file feature.c.

+ Here is the call graph for this function:

void vnet_interface_features_show ( vlib_main_t vm,
u32  sw_if_index 
)

Display the set of driver features configured on a specific interface Called by "show interface" handler.

Definition at line 272 of file feature.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vnet_feature_main_t feature_main

Definition at line 18 of file feature.c.

vlib_cli_command_t show_features_command
static
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.
Definition: feature.c:224

(constructor) VLIB_CLI_COMMAND (show_features_command)

Definition at line 260 of file feature.c.