FD.io VPP  v16.06
Vector Packet Processing
l2_vtr.h File Reference
+ Include dependency graph for l2_vtr.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vtr_config_t
 

Enumerations

enum  l2_vtr_op_t {
  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
}
 

Functions

always_inline u32 l2_vtr_process (vlib_buffer_t *b0, vtr_config_t *config)
 
always_inline 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)
 
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)
 

Enumeration Type Documentation

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.

Function Documentation

always_inline u8 l2_efp_filter_process ( vlib_buffer_t b0,
vtr_config_t in_config 
)

Definition at line 121 of file l2_vtr.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

always_inline u32 l2_vtr_process ( vlib_buffer_t b0,
vtr_config_t config 
)

Definition at line 63 of file l2_vtr.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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: