|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
15 #ifndef included_vnet_vxlan_gbp_h
16 #define included_vnet_vxlan_gbp_h
41 }) ip4_vxlan_gbp_header_t;
47 }) ip6_vxlan_gbp_header_t;
135 #define foreach_vxlan_gbp_input_next \
136 _(DROP, "error-drop") \
137 _(PUNT, "punt-dispatch") \
138 _(L2_INPUT, "l2-input") \
139 _(IP4_INPUT, "ip4-input") \
140 _(IP6_INPUT, "ip6-input")
144 #define _(s,n) VXLAN_GBP_INPUT_NEXT_##s,
152 #define vxlan_gbp_error(n,s) VXLAN_GBP_ERROR_##n,
154 #undef vxlan_gbp_error
vxlan_gbp_input_next_t(* vxlan_bgp_no_tunnel_t)(vlib_buffer_t *b, u32 thread_index, u8 is_ip6)
Call back function packets that do not match a configured tunnel.
enum vlib_punt_reason_t_ vlib_punt_reason_t
The 'syatem' defined punt reasons.
u32 sibling_index
The tunnel is a child of the FIB entry for its destination.
clib_bihash_kv_16_8_t vxlan4_gbp_tunnel_key_t
#define foreach_vxlan_gbp_input_next
static u32 vxlan_gbp_tunnel_by_sw_if_index(u32 sw_if_index)
vxlan_gbp_tunnel_t * tunnels
#define CLIB_CACHE_LINE_ALIGN_MARK(mark)
@ VXLAN_GBP_TUNNEL_MODE_L2
fib_node_index_t fib_entry_index
void vxlan_gbp_unregister_udp_ports(void)
vlib_node_registration_t vxlan4_gbp_encap_node
(constructor) VLIB_REGISTER_NODE (vxlan4_gbp_encap_node)
enum vxlan_gbp_tunnel_mode_t_ vxlan_gbp_tunnel_mode_t
@ VXLAN_GBP_TUNNEL_MODE_L3
vlib_node_registration_t vxlan4_gbp_input_node
(constructor) VLIB_REGISTER_NODE (vxlan4_gbp_input_node)
int vnet_vxlan_gbp_tunnel_del(u32 sw_if_indexp)
vxlan_gbp_main_t vxlan_gbp_main
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
vxlan_gbp_tunnel_mode_t mode
Tunnel mode.
#define FIB_PROTOCOL_IP_MAX
Definition outside of enum so it does not need to be included in non-defaulted switch statements.
vxlan_gbp_tunnel_mode_t mode
void vnet_int_vxlan_gbp_bypass_mode(u32 sw_if_index, u8 is_ip6, u8 is_enable)
vlib_node_registration_t vxlan6_gbp_encap_node
(constructor) VLIB_REGISTER_NODE (vxlan6_gbp_encap_node)
clib_bihash_24_8_t vxlan6_gbp_tunnel_by_key
u32 fib_node_index_t
A typedef of a node index.
void vxlan_gbp_register_udp_ports(void)
vlib_node_registration_t vxlan6_gbp_input_node
(constructor) VLIB_REGISTER_NODE (vxlan6_gbp_input_node)
struct _vlib_node_registration vlib_node_registration_t
fib_node_t node
Linkage into the FIB object graph.
u32 * tunnel_index_by_sw_if_index
clib_bihash_16_8_t vxlan4_gbp_tunnel_by_key
uword encap_next_node
Next node after VxLAN-GBP encap.
An node in the FIB graph.
u32 adj_index_t
An index for adjacencies.
adj_index_t mcast_adj_index
typedef CLIB_PACKED(struct { ip4_header_t ip4;udp_header_t udp;vxlan_gbp_header_t vxlan_gbp;}) ip4_vxlan_gbp_header_t
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
vl_api_interface_index_t sw_if_index
u8 * format_vxlan_gbp_encap_trace(u8 *s, va_list *args)
int vnet_vxlan_gbp_tunnel_add_del(vnet_vxlan_gbp_tunnel_add_del_args_t *a, u32 *sw_if_indexp)
clib_bihash_kv_24_8_t vxlan6_gbp_tunnel_key_t
u8 * format_vxlan_gbp_tunnel_mode(u8 *s, va_list *args)
VLIB buffer representation.