FD.io VPP  v16.06
Vector Packet Processing
l2_output.c File Reference
+ Include dependency graph for l2_output.c:

Go to the source code of this file.

Data Structures

struct  l2output_trace_t
 
struct  output_node_mapping_rpc_args_t
 

Macros

#define foreach_l2output_error
 

Enumerations

enum  l2output_error_t { L2OUTPUT_N_ERROR }
 
enum  l2output_next_t { L2OUTPUT_NEXT_DROP, L2OUTPUT_N_NEXT }
 

Functions

char ** l2output_get_feat_names (void)
 
static u8format_l2output_trace (u8 *s, va_list *args)
 
static_always_inline u32 split_horizon_violation (u8 shg1, u8 shg2)
 
static uword l2output_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
clib_error_tl2output_init (vlib_main_t *vm)
 
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)
 
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

static char * l2output_feat_names []
 
l2output_main_t l2output_main
 
static char * l2output_error_strings []
 
static vlib_node_registration_t l2output_node
 (constructor) VLIB_REGISTER_NODE (l2output_node) More...
 

Macro Definition Documentation

#define foreach_l2output_error
Value:
_(L2OUTPUT, "L2 output packets") \
_(EFP_DROP, "L2 EFP filter pre-rewrite drops") \
_(VTR_DROP, "L2 output tag rewrite drops") \
_(SHG_DROP, "L2 split horizon drops") \
_(DROP, "L2 output drops")
DROP
Definition: error.def:41

Definition at line 65 of file l2_output.c.

Enumeration Type Documentation

Enumerator
L2OUTPUT_N_ERROR 

Definition at line 72 of file l2_output.c.

Enumerator
L2OUTPUT_NEXT_DROP 
L2OUTPUT_N_NEXT 

Definition at line 85 of file l2_output.c.

Function Documentation

static u8* format_l2output_trace ( u8 s,
va_list *  args 
)
static

Definition at line 51 of file l2_output.c.

+ 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:

clib_error_t* l2output_init ( vlib_main_t vm)

Definition at line 417 of file l2_output.c.

+ Here is the call 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:

static uword l2output_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 108 of file l2_output.c.

+ Here is the call graph for this function:

static_always_inline u32 split_horizon_violation ( u8  shg1,
u8  shg2 
)

Definition at line 95 of file l2_output.c.

+ Here is the caller graph for this function:

Variable Documentation

char* l2output_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_l2output_error
Definition: l2_output.c:65

Definition at line 79 of file l2_output.c.

char* l2output_feat_names[]
static
Initial value:

Definition at line 31 of file l2_output.c.

l2output_main_t l2output_main

Definition at line 41 of file l2_output.c.

vlib_node_registration_t l2output_node
static
Initial value:
= {
.function = l2output_node_fn,
.name = "l2-output",
.vector_size = sizeof (u32),
.format_trace = format_l2output_trace,
.error_strings = l2output_error_strings,
.n_next_nodes = L2OUTPUT_N_NEXT,
.next_nodes = {
[L2OUTPUT_NEXT_DROP] = "error-drop",
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static uword l2output_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: l2_output.c:108
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static char * l2output_error_strings[]
Definition: l2_output.c:79
static u8 * format_l2output_trace(u8 *s, va_list *args)
Definition: l2_output.c:51

(constructor) VLIB_REGISTER_NODE (l2output_node)

Definition at line 105 of file l2_output.c.