Go to the source code of this file.
|
void | vnet_config_update_feature_count (vnet_feature_main_t *fm, u16 arc, u32 sw_if_index, int is_add) |
|
u32 | vnet_feature_index_from_node_name (u16 type, 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_always_inline int | vnet_have_features (u32 arc, u32 sw_if_index) |
|
static_always_inline u32 | vnet_feature_get_config_index (u16 arc, u32 sw_if_index) |
|
static_always_inline void | vnet_feature_redirect (u16 arc, u32 sw_if_index, u32 *next0, vlib_buffer_t *b0) |
|
static_always_inline void | vnet_feature_device_input_redirect_x1 (vlib_node_runtime_t *node, u32 sw_if_index, u32 *next0, vlib_buffer_t *b0, u16 buffer_advanced0) |
|
clib_error_t * | vnet_feature_arc_init (vlib_main_t *vm, vnet_config_main_t *vcm, char **feature_start_nodes, int num_feature_start_nodes, vnet_feature_registration_t *first_reg, char ***feature_nodes) |
| Initialize a feature graph arc. 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...
|
|
#define ORDER_CONSTRAINTS (char*[]) |
#define VNET_FEATURE_ARC_INIT |
( |
|
x, |
|
|
|
... |
|
) |
| |
Value:static void __vnet_add_feature_arc_registration_##x (void) \
__attribute__((__constructor__)) ; \
static void __vnet_add_feature_arc_registration_##x (void) \
{ \
vnet_feat_arc_##x.next = fm->
next_arc; \
fm->next_arc = & vnet_feat_arc_##x; \
} \
vnet_feature_main_t feature_main
struct _vnet_feature_arc_registration vnet_feature_arc_registration_t
feature registration object
vnet_feature_arc_registration_t * next_arc
feature arc configuration list
Definition at line 89 of file feature.h.
#define VNET_FEATURE_INIT |
( |
|
x, |
|
|
|
... |
|
) |
| |
Value:static void __vnet_add_feature_registration_##x (void) \
__attribute__((__constructor__)) ; \
static void __vnet_add_feature_registration_##x (void) \
{ \
fm->next_feature = & vnet_feat_##x; \
} \
vnet_feature_registration_t * next_feature
feature path configuration lists
vnet_feature_main_t feature_main
struct _vnet_feature_registration vnet_feature_registration_t
feature registration object
Definition at line 101 of file feature.h.
#define VNET_FEATURES |
( |
|
... | ) |
(char*[]) { __VA_ARGS__, 0} |
feature registration object
feature registration object
Initialize a feature graph arc.
- Parameters
-
| vm | vlib main structure pointer |
| vcm | vnet config main structure pointer |
| feature_start_nodes | names of start-nodes which use this feature graph arc |
| num_feature_start_nodes | number of start-nodes |
| first_reg | first element in [an attribute((constructor)) function built, or otherwise created] singly-linked list of feature registrations |
[out] | in_feature_nodes | returned vector of topologically-sorted feature node names, for use in show commands |
- Returns
- 0 on success, otherwise an error message. Errors are fatal since they invariably involve mistyped node-names, or genuinely missing node-names
Definition at line 127 of file registration.c.
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 |
|
) |
| |
u32 vnet_feature_index_from_node_name |
( |
u16 |
type, |
|
|
const char * |
s |
|
) |
| |
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.