FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
vxlan.h File Reference
+ Include dependency graph for vxlan.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  vxlan_decap_info_t
 
struct  vxlan_tunnel_t
 
struct  vxlan_main_t
 
struct  vnet_vxlan_add_del_tunnel_args_t
 

Macros

#define foreach_vxlan_input_next
 
#define vxlan_error(n, s)   VXLAN_ERROR_##n,
 

Typedefs

typedef clib_bihash_kv_16_8_t vxlan4_tunnel_key_t
 
typedef clib_bihash_kv_24_8_t vxlan6_tunnel_key_t
 

Enumerations

enum  vxlan_input_next_t { VXLAN_INPUT_N_NEXT }
 
enum  vxlan_input_error_t { VXLAN_N_ERROR }
 

Functions

typedef CLIB_PACKED (struct { ip4_header_t ip4;udp_header_t udp;vxlan_header_t vxlan;}) ip4_vxlan_header_t
 
typedef CLIB_PACKED (struct { ip6_header_t ip6;udp_header_t udp;vxlan_header_t vxlan;}) ip6_vxlan_header_t
 
u8format_vxlan_encap_trace (u8 *s, va_list *args)
 
int vnet_vxlan_add_del_tunnel (vnet_vxlan_add_del_tunnel_args_t *a, u32 *sw_if_indexp)
 
void vnet_int_vxlan_bypass_mode (u32 sw_if_index, u8 is_ip6, u8 is_enable)
 
int vnet_vxlan_add_del_rx_flow (u32 hw_if_index, u32 t_imdex, int is_add)
 
u32 vnet_vxlan_get_tunnel_index (u32 sw_if_index)
 

Variables

vxlan_main_t vxlan_main
 
vlib_node_registration_t vxlan4_input_node
 (constructor) VLIB_REGISTER_NODE (vxlan4_input_node) More...
 
vlib_node_registration_t vxlan6_input_node
 (constructor) VLIB_REGISTER_NODE (vxlan6_input_node) More...
 
vlib_node_registration_t vxlan4_encap_node
 (constructor) VLIB_REGISTER_NODE (vxlan4_encap_node) More...
 
vlib_node_registration_t vxlan6_encap_node
 (constructor) VLIB_REGISTER_NODE (vxlan6_encap_node) More...
 
vlib_node_registration_t vxlan4_flow_input_node
 (constructor) VLIB_REGISTER_NODE (vxlan4_flow_input_node) More...
 

Macro Definition Documentation

◆ foreach_vxlan_input_next

#define foreach_vxlan_input_next
Value:
_(DROP, "error-drop") \
_(L2_INPUT, "l2-input")

Definition at line 140 of file vxlan.h.

◆ vxlan_error

#define vxlan_error (   n,
 
)    VXLAN_ERROR_##n,

Definition at line 154 of file vxlan.h.

Typedef Documentation

◆ vxlan4_tunnel_key_t

Definition at line 54 of file vxlan.h.

◆ vxlan6_tunnel_key_t

Definition at line 61 of file vxlan.h.

Enumeration Type Documentation

◆ vxlan_input_error_t

Enumerator
VXLAN_N_ERROR 

Definition at line 152 of file vxlan.h.

◆ vxlan_input_next_t

Enumerator
VXLAN_INPUT_N_NEXT 

Definition at line 144 of file vxlan.h.

Function Documentation

◆ CLIB_PACKED() [1/2]

typedef CLIB_PACKED ( struct { ip4_header_t ip4;udp_header_t udp;vxlan_header_t vxlan;}  )

◆ CLIB_PACKED() [2/2]

typedef CLIB_PACKED ( struct { ip6_header_t ip6;udp_header_t udp;vxlan_header_t vxlan;}  )

◆ format_vxlan_encap_trace()

u8* format_vxlan_encap_trace ( u8 s,
va_list *  args 
)

Definition at line 58 of file encap.c.

◆ vnet_int_vxlan_bypass_mode()

void vnet_int_vxlan_bypass_mode ( u32  sw_if_index,
u8  is_ip6,
u8  is_enable 
)

Definition at line 985 of file vxlan.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vnet_vxlan_add_del_rx_flow()

int vnet_vxlan_add_del_rx_flow ( u32  hw_if_index,
u32  t_imdex,
int  is_add 
)

Definition at line 1181 of file vxlan.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vnet_vxlan_add_del_tunnel()

int vnet_vxlan_add_del_tunnel ( vnet_vxlan_add_del_tunnel_args_t a,
u32 sw_if_indexp 
)

Definition at line 358 of file vxlan.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vnet_vxlan_get_tunnel_index()

u32 vnet_vxlan_get_tunnel_index ( u32  sw_if_index)

Definition at line 1220 of file vxlan.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ vxlan4_encap_node

vlib_node_registration_t vxlan4_encap_node

(constructor) VLIB_REGISTER_NODE (vxlan4_encap_node)

Definition at line 544 of file encap.c.

◆ vxlan4_flow_input_node

vlib_node_registration_t vxlan4_flow_input_node

(constructor) VLIB_REGISTER_NODE (vxlan4_flow_input_node)

Definition at line 1304 of file decap.c.

◆ vxlan4_input_node

vlib_node_registration_t vxlan4_input_node

(constructor) VLIB_REGISTER_NODE (vxlan4_input_node)

Definition at line 23 of file decap.c.

◆ vxlan6_encap_node

vlib_node_registration_t vxlan6_encap_node

(constructor) VLIB_REGISTER_NODE (vxlan6_encap_node)

Definition at line 557 of file encap.c.

◆ vxlan6_input_node

vlib_node_registration_t vxlan6_input_node

(constructor) VLIB_REGISTER_NODE (vxlan6_input_node)

Definition at line 24 of file decap.c.

◆ vxlan_main

vxlan_main_t vxlan_main

Definition at line 46 of file vxlan.c.

DROP
DROP
Definition: error.def:41