FD.io VPP  v19.08-27-gf4dcae4
Vector Packet Processing
feat_bitmap.h File Reference
+ Include dependency graph for feat_bitmap.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FEAT_MAX   32
 

Functions

static void feat_bitmap_init_next_nodes (vlib_main_t *vm, u32 node_index, u32 num_features, char **feat_names, u32 *next_nodes)
 Initialize the feature next-node indexes of a graph node. More...
 
static u32 feat_bitmap_get_next_node_index (u32 *next_nodes, u32 bitmap)
 Return the graph node index for the feature corresponding to the first set bit in the bitmap. More...
 
static u32 vnet_l2_feature_next (vlib_buffer_t *b, u32 *next_nodes, u32 feat_bit)
 Return the graph node index for the feature corresponding to the next set bit after clearing the current feature bit in the feature_bitmap of the current packet. More...
 

Macro Definition Documentation

#define FEAT_MAX   32

Definition at line 36 of file feat_bitmap.h.

Function Documentation

static u32 feat_bitmap_get_next_node_index ( u32 next_nodes,
u32  bitmap 
)
inlinestatic

Return the graph node index for the feature corresponding to the first set bit in the bitmap.

Definition at line 79 of file feat_bitmap.h.

+ Here is the caller graph for this function:

static void feat_bitmap_init_next_nodes ( vlib_main_t vm,
u32  node_index,
u32  num_features,
char **  feat_names,
u32 next_nodes 
)
inlinestatic

Initialize the feature next-node indexes of a graph node.

Should be called by the init function of each feature graph node.

Definition at line 43 of file feat_bitmap.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 vnet_l2_feature_next ( vlib_buffer_t b,
u32 next_nodes,
u32  feat_bit 
)
inlinestatic

Return the graph node index for the feature corresponding to the next set bit after clearing the current feature bit in the feature_bitmap of the current packet.

Definition at line 94 of file feat_bitmap.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: