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

Go to the source code of this file.

Functions

clib_error_tl2_vtr_init (vlib_main_t *vm)
 
u32 l2vtr_configure (vlib_main_t *vlib_main, vnet_main_t *vnet_main, u32 sw_if_index, u32 vtr_op, u32 push_dot1q, u32 vtr_tag1, u32 vtr_tag2)
 
u32 l2vtr_get (vlib_main_t *vlib_main, vnet_main_t *vnet_main, u32 sw_if_index, u32 *vtr_op, u32 *push_dot1q, u32 *vtr_tag1, u32 *vtr_tag2)
 
static clib_error_tint_l2_vtr (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

vlib_cli_command_t int_l2_vtr_cli
 (constructor) VLIB_CLI_COMMAND (int_l2_vtr_cli) More...
 

Function Documentation

static clib_error_t* int_l2_vtr ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 358 of file l2_vtr.c.

+ Here is the call graph for this function:

clib_error_t* l2_vtr_init ( vlib_main_t vm)

Definition at line 34 of file l2_vtr.c.

u32 l2vtr_configure ( vlib_main_t vlib_main,
vnet_main_t vnet_main,
u32  sw_if_index,
u32  vtr_op,
u32  push_dot1q,
u32  vtr_tag1,
u32  vtr_tag2 
)

Definition at line 44 of file l2_vtr.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 l2vtr_get ( vlib_main_t vlib_main,
vnet_main_t vnet_main,
u32  sw_if_index,
u32 vtr_op,
u32 push_dot1q,
u32 vtr_tag1,
u32 vtr_tag2 
)

Definition at line 230 of file l2_vtr.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_cli_command_t int_l2_vtr_cli
Initial value:
= {
.path = "set interface l2 tag-rewrite",
.short_help = "set interface l2 tag-rewrite <interface> [disable | pop {1|2} | push {dot1q|dot1ad} <tag> <tag>]",
.function = int_l2_vtr,
}
static clib_error_t * int_l2_vtr(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: l2_vtr.c:358

(constructor) VLIB_CLI_COMMAND (int_l2_vtr_cli)

Definition at line 443 of file l2_vtr.c.