FD.io VPP  v19.01.2-3-gf61a1a8
Vector Packet Processing
gbp_vxlan.h File Reference
+ Include dependency graph for gbp_vxlan.h:
+ This graph shows which files directly or indirectly include this file:

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)
 
u8format_gbp_vxlan_tunnel (u8 *s, va_list *args)
 
u8format_gbp_vxlan_tunnel_layer (u8 *s, va_list *args)
 

Macro Definition Documentation

#define forecah_gbp_vxlan_tunnel_layer
Value:
_(L2, "l2") \
_(L3, "l3")

Definition at line 21 of file gbp_vxlan.h.

Typedef Documentation

typedef walk_rc_t(* gbp_vxlan_cb_t) (gbp_vxlan_tunnel_t *gt, void *ctx)

Definition at line 119 of file gbp_vxlan.h.

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;

The different types of interfaces that endpoints are learned on.

Enumeration Type Documentation

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.

Enumerator
GBP_VXLAN_TEMPLATE_TUNNEL 

This is the object type deifend above.

A template representation of a vxlan-gbp tunnel. from this tunnel type, real vxlan-gbp tunnels are created (by cloning the VNI)

VXLAN_GBP_TUNNEL 

A real VXLAN-GBP tunnel (from vnet/vxlan-gbp/...)

Definition at line 90 of file gbp_vxlan.h.

Function Documentation

u8* format_gbp_vxlan_tunnel ( u8 s,
va_list *  args 
)

Definition at line 542 of file gbp_vxlan.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_gbp_vxlan_tunnel_layer ( u8 s,
va_list *  args 
)

Definition at line 533 of file gbp_vxlan.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int gbp_vxlan_tunnel_del ( u32  vni)

Definition at line 765 of file gbp_vxlan.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

gbp_vxlan_tunnel_type_t gbp_vxlan_tunnel_get_type ( u32  sw_if_index)

Definition at line 206 of file gbp_vxlan.c.

+ Here is the caller graph for this function:

void gbp_vxlan_walk ( gbp_vxlan_cb_t  cb,
void *  ctx 
)

Definition at line 502 of file gbp_vxlan.c.

+ Here is the caller graph for this function:

u32 vxlan_gbp_tunnel_get_parent ( u32  sw_if_index)

Definition at line 191 of file gbp_vxlan.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vxlan_gbp_tunnel_lock ( u32  sw_if_index)

Definition at line 300 of file gbp_vxlan.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vxlan_gbp_tunnel_unlock ( u32  sw_if_index)

Definition at line 281 of file gbp_vxlan.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: