|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
20 #ifndef included_vnet_vxlan_gpe_h
21 #define included_vnet_vxlan_gpe_h
51 }) ip4_vxlan_gpe_header_t;
62 }) ip6_vxlan_gpe_header_t;
83 }) vxlan4_gpe_tunnel_key_t;
97 }) vxlan6_gpe_tunnel_key_t;
169 #define VXLAN_GPE_TUNNEL_IS_IPV4 1
172 #define foreach_vxlan_gpe_input_next \
173 _(DROP, "error-drop") \
174 _(IP4_INPUT, "ip4-input") \
175 _(IP6_INPUT, "ip6-input") \
176 _(L2_INPUT, "l2-input")
181 #define _(s,n) VXLAN_GPE_INPUT_NEXT_##s,
190 #define vxlan_gpe_error(n,s) VXLAN_GPE_ERROR_##n,
192 #undef vxlan_gpe_error
224 #ifdef CLIB_HAVE_VEC512
225 vtep4_cache_t vtep4_u512;
259 u8 protocol_override,
uword encap_next_node);
261 u8 protocol_override,
uword encap_next_node);
276 uword next_node_index);
279 uword next_node_index);
u32 decap_fib_index
FIB indices - inner IP packet lookup here.
u32 sibling_index
The tunnel is a child of the FIB entry for its destination.
#define CLIB_CACHE_LINE_ALIGN_MARK(mark)
u32 * free_vxlan_gpe_tunnel_hw_if_indices
Free vlib hw_if_indices.
int vnet_vxlan_gpe_add_del_tunnel(vnet_vxlan_gpe_add_del_tunnel_args_t *a, u32 *sw_if_indexp)
Add or Del a VXLAN GPE tunnel.
vxlan_gpe_main_t vxlan_gpe_main
vxlan_gpe_input_error_t
struct for VXLAN GPE errors
u8 rewrite_size
rewrite size for dynamic plugins like iOAM
Struct for VXLAN GPE node state.
adj_index_t mcast_adj_index
vnet_main_t * vnet_main
State convenience vnet_main_t.
uword * vxlan6_gpe_tunnel_by_key
lookup IPv6 VXLAN GPE tunnel by key
vxlan_gpe_input_next_t
struct for next nodes for VXLAN GPE input
u8 protocol
encapsulated protocol
u32 encap_fib_index
FIB indices - tunnel partner lookup here.
void vxlan_gpe_register_decap_protocol(u8 protocol_id, uword next_node_index)
vlib_node_registration_t vxlan6_gpe_input_node
(constructor) VLIB_REGISTER_NODE (vxlan6_gpe_input_node)
fib_node_t node
Linkage into the FIB object graph.
u32 vni
VXLAN GPE VNI in HOST byte order, shifted left 8 bits.
vlib_node_registration_t vxlan_gpe_encap_node
(constructor) VLIB_REGISTER_NODE (vxlan_gpe_encap_node)
u8 * rewrite
Rewrite string.
ip46_address_t local
tunnel local address
u32 fib_node_index_t
A typedef of a node index.
vxlan_gpe_encap_next_t
Struct for defining VXLAN GPE next nodes.
fib_node_index_t fib_entry_index
Struct for VXLAN GPE tunnel.
@ VXLAN_GPE_ENCAP_NEXT_IP6_LOOKUP
Struct for VXLAN GPE add/del args.
vxlan_gpe_tunnel_t * tunnels
vector of encap tunnel instances
int vxlan6_gpe_rewrite(vxlan_gpe_tunnel_t *t, u32 extension_size, u8 protocol_override, uword encap_next_node)
Calculate IPv6 VXLAN GPE rewrite header.
@ VXLAN_GPE_ENCAP_NEXT_IP4_LOOKUP
struct _vlib_node_registration vlib_node_registration_t
uword * vxlan4_gpe_tunnel_by_key
lookup IPv4 VXLAN GPE tunnel by key
int vxlan4_gpe_rewrite(vxlan_gpe_tunnel_t *t, u32 extension_size, u8 protocol_override, uword encap_next_node)
Calculate IPv4 VXLAN GPE rewrite header.
uword encap_next_node
Next node after VxLAN-GPE encap.
VXLAN GPE packet header structure.
u32 sw_if_index
vnet intfc sw_if_index
ip46_address_t remote
tunnel remote address
void vnet_int_vxlan_gpe_bypass_mode(u32 sw_if_index, u8 is_ip6, u8 is_enable)
typedef CLIB_PACKED(struct { ip4_header_t ip4;udp_header_t udp;vxlan_gpe_header_t vxlan;}) ip4_vxlan_gpe_header_t
VXLAN GPE header struct.
u32 hw_if_index
vnet intfc hw_if_index
An node in the FIB graph.
u32 adj_index_t
An index for adjacencies.
vlib_main_t * vlib_main
State convenience vlib_main_t.
u32 * tunnel_index_by_sw_if_index
Mapping from sw_if_index to tunnel index.
@ VXLAN_GPE_ENCAP_NEXT_DROP
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
u8 pad[3]
log2 (size of the packing page block)
u8 * format_vxlan_gpe_encap_trace(u8 *s, va_list *args)
Trace of packets encapsulated in VXLAN GPE.
vlib_node_registration_t vxlan4_gpe_input_node
(constructor) VLIB_REGISTER_NODE (vxlan4_gpe_input_node)
vl_api_interface_index_t sw_if_index
void vxlan_gpe_unregister_decap_protocol(u8 protocol_id, uword next_node_index)
#define foreach_vxlan_gpe_input_next
next nodes for VXLAN GPE input