FD.io VPP
v19.01.3-6-g70449b9b9
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | gbp_vxlan_tunnel_t_ |
GBP VXLAN (template) tunnel. More... | |
Macros | |
#define | forecah_gbp_vxlan_tunnel_layer |
Typedefs | |
typedef enum gbp_vxlan_tunnel_layer_t_ | gbp_vxlan_tunnel_layer_t |
typedef struct gbp_vxlan_tunnel_t_ | gbp_vxlan_tunnel_t |
GBP VXLAN (template) tunnel. More... | |
typedef enum gbp_vxlan_tunnel_type_t_ | gbp_vxlan_tunnel_type_t |
The different types of interfaces that endpoints are learned on. More... | |
typedef walk_rc_t(* | gbp_vxlan_cb_t) (gbp_vxlan_tunnel_t *gt, void *ctx) |
Enumerations | |
enum | gbp_vxlan_tunnel_layer_t_ { forecah_gbp_vxlan_tunnel_layer } |
enum | gbp_vxlan_tunnel_type_t_ { GBP_VXLAN_TEMPLATE_TUNNEL, VXLAN_GBP_TUNNEL } |
The different types of interfaces that endpoints are learned on. More... | |
Functions | |
int | gbp_vxlan_tunnel_add (u32 vni, gbp_vxlan_tunnel_layer_t layer, u32 bd_rd_id, u32 *sw_if_indexp) |
int | gbp_vxlan_tunnel_del (u32 vni) |
gbp_vxlan_tunnel_type_t | gbp_vxlan_tunnel_get_type (u32 sw_if_index) |
u32 | gbp_vxlan_tunnel_clone_and_lock (u32 parent_tunnel, const ip46_address_t *src, const ip46_address_t *dst) |
void | vxlan_gbp_tunnel_lock (u32 sw_if_index) |
void | vxlan_gbp_tunnel_unlock (u32 sw_if_index) |
u32 | vxlan_gbp_tunnel_get_parent (u32 sw_if_index) |
void | gbp_vxlan_walk (gbp_vxlan_cb_t cb, void *ctx) |
u8 * | format_gbp_vxlan_tunnel (u8 *s, va_list *args) |
u8 * | format_gbp_vxlan_tunnel_layer (u8 *s, va_list *args) |
#define forecah_gbp_vxlan_tunnel_layer |
Definition at line 21 of file gbp_vxlan.h.
typedef walk_rc_t(* gbp_vxlan_cb_t) (gbp_vxlan_tunnel_t *gt, void *ctx) |
Definition at line 119 of file gbp_vxlan.h.
typedef enum gbp_vxlan_tunnel_layer_t_ gbp_vxlan_tunnel_layer_t |
typedef struct gbp_vxlan_tunnel_t_ gbp_vxlan_tunnel_t |
GBP VXLAN (template) tunnel.
A template tunnel has only a VNI, it does not have src,dst address. As such it cannot be used to send traffic. It is used in the RX path to RX vxlan-gbp packets that do not match an existing tunnel;
typedef enum gbp_vxlan_tunnel_type_t_ gbp_vxlan_tunnel_type_t |
The different types of interfaces that endpoints are learned on.
Enumerator | |
---|---|
forecah_gbp_vxlan_tunnel_layer |
Definition at line 25 of file gbp_vxlan.h.
The different types of interfaces that endpoints are learned on.
Definition at line 90 of file gbp_vxlan.h.
Definition at line 542 of file gbp_vxlan.c.
Definition at line 533 of file gbp_vxlan.c.
int gbp_vxlan_tunnel_add | ( | u32 | vni, |
gbp_vxlan_tunnel_layer_t | layer, | ||
u32 | bd_rd_id, | ||
u32 * | sw_if_indexp | ||
) |
Definition at line 640 of file gbp_vxlan.c.
u32 gbp_vxlan_tunnel_clone_and_lock | ( | u32 | parent_tunnel, |
const ip46_address_t * | src, | ||
const ip46_address_t * | dst | ||
) |
Definition at line 224 of file gbp_vxlan.c.
int gbp_vxlan_tunnel_del | ( | u32 | vni | ) |
Definition at line 765 of file gbp_vxlan.c.
gbp_vxlan_tunnel_type_t gbp_vxlan_tunnel_get_type | ( | u32 | sw_if_index | ) |
void gbp_vxlan_walk | ( | gbp_vxlan_cb_t | cb, |
void * | ctx | ||
) |
Definition at line 191 of file gbp_vxlan.c.
void vxlan_gbp_tunnel_lock | ( | u32 | sw_if_index | ) |
Definition at line 300 of file gbp_vxlan.c.
void vxlan_gbp_tunnel_unlock | ( | u32 | sw_if_index | ) |
Definition at line 281 of file gbp_vxlan.c.