FD.io VPP  v16.06
Vector Packet Processing
l2_output.h File Reference
+ Include dependency graph for l2_output.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  l2_output_config_t
 
struct  l2_output_next_nodes_st
 
struct  l2output_main_t
 

Macros

#define foreach_l2output_feat
 

Enumerations

enum  l2output_feat_t { L2OUTPUT_N_FEAT }
 
enum  l2output_feat_masks_t { foreach_l2output_feat }
 

Functions

char ** l2output_get_feat_names (void)
 
u32 l2output_create_output_node_mapping (vlib_main_t *vlib_main, vnet_main_t *vnet_main, u32 node_index, u32 *output_node_index_vec, u32 sw_if_index)
 
always_inline void l2output_init_output_node_vec (u32 **output_node_index_vec)
 
always_inline u32 l2output_get_output_node (vlib_main_t *vlib_main, vnet_main_t *vnet_main, u32 node_index, u32 sw_if_index, u32 **output_node_index_vec)
 
always_inline void l2_output_dispatch (vlib_main_t *vlib_main, vnet_main_t *vnet_main, vlib_node_runtime_t *node, u32 node_index, u32 *cached_sw_if_index, u32 *cached_next_index, l2_output_next_nodes_st *next_nodes, vlib_buffer_t *b0, u32 sw_if_index, u32 feature_bitmap, u32 *next0)
 
l2_output_config_tl2output_intf_config (u32 sw_if_index)
 
void l2output_intf_bitmap_enable (u32 sw_if_index, u32 feature_bitmap, u32 enable)
 

Variables

l2output_main_t l2output_main
 

Macro Definition Documentation

#define foreach_l2output_feat
Value:
_(SPAN, "feature-bitmap-drop") \
_(CFM, "feature-bitmap-drop") \
_(QOS, "feature-bitmap-drop") \
_(ACL, "l2-output-acl") \
_(L2PT, "feature-bitmap-drop") \
_(EFP_FILTER, "l2-efp-filter") \
_(IPIW, "feature-bitmap-drop") \
_(STP_BLOCKED, "feature-bitmap-drop") \
_(LINESTATUS_DOWN, "feature-bitmap-drop") \
_(XCRW, "l2-xcrw")

Definition at line 80 of file l2_output.h.

Enumeration Type Documentation

Enumerator
foreach_l2output_feat 

Definition at line 101 of file l2_output.h.

Enumerator
L2OUTPUT_N_FEAT 

Definition at line 93 of file l2_output.h.

Function Documentation

always_inline void l2_output_dispatch ( vlib_main_t vlib_main,
vnet_main_t vnet_main,
vlib_node_runtime_t node,
u32  node_index,
u32 cached_sw_if_index,
u32 cached_next_index,
l2_output_next_nodes_st next_nodes,
vlib_buffer_t b0,
u32  sw_if_index,
u32  feature_bitmap,
u32 next0 
)

Definition at line 166 of file l2_output.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 l2output_create_output_node_mapping ( vlib_main_t vlib_main,
vnet_main_t vnet_main,
u32  node_index,
u32 output_node_index_vec,
u32  sw_if_index 
)

Definition at line 469 of file l2_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

char** l2output_get_feat_names ( void  )

Definition at line 37 of file l2_output.c.

+ Here is the caller graph for this function:

always_inline u32 l2output_get_output_node ( vlib_main_t vlib_main,
vnet_main_t vnet_main,
u32  node_index,
u32  sw_if_index,
u32 **  output_node_index_vec 
)

Definition at line 137 of file l2_output.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

always_inline void l2output_init_output_node_vec ( u32 **  output_node_index_vec)

Definition at line 126 of file l2_output.h.

+ Here is the caller graph for this function:

void l2output_intf_bitmap_enable ( u32  sw_if_index,
u32  feature_bitmap,
u32  enable 
)

Definition at line 538 of file l2_output.c.

+ Here is the caller graph for this function:

l2_output_config_t* l2output_intf_config ( u32  sw_if_index)

Definition at line 529 of file l2_output.c.

+ Here is the caller graph for this function:

Variable Documentation

l2output_main_t l2output_main

Definition at line 75 of file l2_output.h.