Go to the source code of this file.
#define foreach_l2_patch_error |
Value:_(PATCHED, "L2 patch packets") \
_(DROPPED, "L2 patch misconfigured drops")
Definition at line 55 of file l2_patch.c.
Enumerator |
---|
L2_PATCH_N_ERROR |
|
Definition at line 59 of file l2_patch.c.
Enumerator |
---|
L2_PATCH_NEXT_DROP |
|
L2_PATCH_N_NEXT |
|
Definition at line 72 of file l2_patch.c.
static u8* format_l2_patch_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
int vnet_l2_patch_add_del |
( |
u32 |
rx_sw_if_index, |
|
|
u32 |
tx_sw_if_index, |
|
|
int |
is_add |
|
) |
| |
char* l2_patch_error_strings[] |
|
static |
Initial value:= {
#define _(sym,string)
}
#define foreach_l2_patch_error
Definition at line 66 of file l2_patch.c.
Initial value:= {
.name = "l2_patch",
.vector_size =
sizeof (
u32),
.next_nodes = {
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static u8 * format_l2_patch_trace(u8 *s, va_list *args)
static char * l2_patch_error_strings[]
static uword l2_patch_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
(constructor) VLIB_REGISTER_NODE (l2_patch_node)
Definition at line 53 of file l2_patch.c.
Initial value:= {
.path = "show l2patch",
.short_help = "Show l2 interface cross-connect entries",
}
static clib_error_t * show_l2patch(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (show_l2patch_cli)
Definition at line 416 of file l2_patch.c.
Initial value:= {
.path = "test l2patch",
.short_help =
"rx <intfc> tx <intfc> [del]",
}
static clib_error_t * test_patch_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (test_patch_command)
Definition at line 373 of file l2_patch.c.