Go to the source code of this file.
|
char ** | l2output_get_feat_names (void) |
|
static u8 * | format_l2output_trace (u8 *s, va_list *args) |
|
static_always_inline u32 | split_horizon_violation (u8 shg1, u8 shg2) |
| Check for split horizon violations. More...
|
|
static uword | l2output_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | l2output_del_tunnel_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
clib_error_t * | l2output_init (vlib_main_t *vm) |
|
static void | output_node_rpc_callback (output_node_mapping_rpc_args_t *a) |
|
static void | output_node_mapping_send_rpc (u32 node_index, u32 sw_if_index) |
|
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) |
| Create a mapping in the next node mapping table for the given sw_if_index. More...
|
|
l2_output_config_t * | l2output_intf_config (u32 sw_if_index) |
| Get a pointer to the config for the given interface. More...
|
|
void | l2output_intf_bitmap_enable (u32 sw_if_index, u32 feature_bitmap, u32 enable) |
| Enable (or disable) the feature in the bitmap for the given interface. More...
|
|
#define foreach_l2output_del_tunnel_error _(DROP, "L2 output to deleted tunnel") |
Enumerator |
---|
L2OUTPUT_DEL_TUNNEL_N_ERROR |
|
Definition at line 448 of file l2_output.c.
static u8* format_l2output_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
Create a mapping in the next node mapping table for the given sw_if_index.
The next set of functions is for use by output feature graph nodes.
Definition at line 598 of file l2_output.c.
char** l2output_get_feat_names |
( |
void |
| ) |
|
void l2output_intf_bitmap_enable |
( |
u32 |
sw_if_index, |
|
|
u32 |
feature_bitmap, |
|
|
u32 |
enable |
|
) |
| |
Enable (or disable) the feature in the bitmap for the given interface.
Definition at line 666 of file l2_output.c.
Get a pointer to the config for the given interface.
Definition at line 656 of file l2_output.c.
static void output_node_mapping_send_rpc |
( |
u32 |
node_index, |
|
|
u32 |
sw_if_index |
|
) |
| |
|
static |
Check for split horizon violations.
Return 0 if split horizon check passes, otherwise return non-zero. Packets should not be transmitted out an interface with the same split-horizon group as the input interface, except if the shg
is 0 in which case the check always passes.
Definition at line 83 of file l2_output.c.
char* l2output_del_tunnel_error_strings[] |
|
static |
Initial value:= {
#define _(sym,string)
}
#define foreach_l2output_del_tunnel_error
Definition at line 442 of file l2_output.c.
Initial value:= {
.name = "l2-output-del-tunnel",
.vector_size =
sizeof (
u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static uword l2output_del_tunnel_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static char * l2output_del_tunnel_error_strings[]
Output node for tunnels which was in L2 BD's but were deleted.
(constructor) VLIB_REGISTER_NODE (l2output_del_tunnel_node)
On deletion of any tunnel which was on a L2 BD, its entry in l2_output_main table next_nodes.output_node_index_vec[sw_if_index] MUST be set to the value of L2OUTPUT_NEXT_DEL_TUNNEL. Thus, if there are stale entries in the L2FIB for this tunnel sw_if_index, l2-output will send packets for this sw_if_index to the l2-output-tunnel-del node which just setup the proper drop reason before sending packets to the error-drop node to drop the packet. Then, stale L2FIB entries for delted tunnels won't cause possible packet or memory corrpution.
Definition at line 468 of file l2_output.c.
char* l2output_error_strings[] |
|
static |
Initial value:= {
#define _(sym,string)
}
#define foreach_l2output_error
Definition at line 69 of file l2_output.c.
char* l2output_feat_names[] |
|
static |
Initial value:= {
.name = "l2-output",
.vector_size =
sizeof (
u32),
.next_nodes = {
},
}
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)
static char * l2output_error_strings[]
static u8 * format_l2output_trace(u8 *s, va_list *args)
(constructor) VLIB_REGISTER_NODE (l2output_node)
Definition at line 96 of file l2_output.c.