Go to the source code of this file.
|
struct | vtr_config_t |
| Per-interface vlan tag rewrite configuration There will be one instance of this struct for each sw_if_index for both input vtr and output vtr. More...
|
|
|
static u32 | l2_vtr_process (vlib_buffer_t *b0, vtr_config_t *config) |
| Perform the configured tag rewrite on the packet. More...
|
|
static u8 | l2_efp_filter_process (vlib_buffer_t *b0, vtr_config_t *in_config) |
|
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) |
| Configure vtag tag rewrite on the given interface. More...
|
|
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) |
| Get vtag tag rewrite on the given interface. More...
|
|
Enumerator |
---|
L2_VTR_DISABLED |
|
L2_VTR_PUSH_1 |
|
L2_VTR_PUSH_2 |
|
L2_VTR_POP_1 |
|
L2_VTR_POP_2 |
|
L2_VTR_TRANSLATE_1_1 |
|
L2_VTR_TRANSLATE_1_2 |
|
L2_VTR_TRANSLATE_2_1 |
|
L2_VTR_TRANSLATE_2_2 |
|
Definition at line 27 of file l2_vtr.h.
Perform the configured tag rewrite on the packet.
Return 0 if ok, 1 if packet should be dropped (e.g. tried to pop too many tags)
Definition at line 75 of file l2_vtr.h.
Configure vtag tag rewrite on the given interface.
Return 1 if there is an error, 0 if ok
Definition at line 48 of file l2_vtr.c.
Get vtag tag rewrite on the given interface.
Return 1 if there is an error, 0 if ok
Definition at line 261 of file l2_vtr.c.