FD.io VPP  v18.10-34-gcce845e
Vector Packet Processing
decap.c File Reference
+ Include dependency graph for decap.c:

Go to the source code of this file.

Data Structures

struct  vxlan_gbp_rx_trace_t
 

Macros

#define vxlan_gbp_error(n, s)   s,
 

Typedefs

typedef vxlan4_gbp_tunnel_key_t last_tunnel_cache4
 
typedef vxlan6_gbp_tunnel_key_t last_tunnel_cache6
 

Enumerations

enum  ip_vxan_gbp_bypass_next_t { IP_VXLAN_GBP_BYPASS_NEXT_DROP, IP_VXLAN_GBP_BYPASS_NEXT_VXLAN_GBP, IP_VXLAN_GBP_BYPASS_N_NEXT }
 

Functions

static u8format_vxlan_gbp_rx_trace (u8 *s, va_list *args)
 
static u32 buf_fib_index (vlib_buffer_t *b, u32 is_ip4)
 
static vxlan_gbp_tunnel_tvxlan4_gbp_find_tunnel (vxlan_gbp_main_t *vxm, last_tunnel_cache4 *cache, u32 fib_index, ip4_header_t *ip4_0, vxlan_gbp_header_t *vxlan_gbp0, vxlan_gbp_tunnel_t **stats_t0)
 
static vxlan_gbp_tunnel_tvxlan6_gbp_find_tunnel (vxlan_gbp_main_t *vxm, last_tunnel_cache6 *cache, u32 fib_index, ip6_header_t *ip6_0, vxlan_gbp_header_t *vxlan_gbp0, vxlan_gbp_tunnel_t **stats_t0)
 
static uword vxlan_gbp_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, u32 is_ip4)
 
static uword vxlan4_gbp_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static uword vxlan6_gbp_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static uword ip_vxlan_gbp_bypass_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u32 is_ip4)
 
static uword ip4_vxlan_gbp_bypass (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
clib_error_tip4_vxlan_gbp_bypass_init (vlib_main_t *vm)
 
static uword ip6_vxlan_gbp_bypass (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
clib_error_tip6_vxlan_gbp_bypass_init (vlib_main_t *vm)
 

Variables

vlib_node_registration_t vxlan4_gbp_input_node
 (constructor) VLIB_REGISTER_NODE (vxlan4_gbp_input_node) More...
 
vlib_node_registration_t vxlan6_gbp_input_node
 (constructor) VLIB_REGISTER_NODE (vxlan6_gbp_input_node) More...
 
static char * vxlan_gbp_error_strings []
 
vlib_node_registration_t ip4_vxlan_gbp_bypass_node
 (constructor) VLIB_REGISTER_NODE (ip4_vxlan_gbp_bypass_node) More...
 
vlib_node_registration_t ip6_vxlan_gbp_bypass_node
 (constructor) VLIB_REGISTER_NODE (ip6_vxlan_gbp_bypass_node) More...
 

Macro Definition Documentation

#define vxlan_gbp_error (   n,
 
)    s,

Typedef Documentation

Definition at line 65 of file decap.c.

Definition at line 112 of file decap.c.

Enumeration Type Documentation

Enumerator
IP_VXLAN_GBP_BYPASS_NEXT_DROP 
IP_VXLAN_GBP_BYPASS_NEXT_VXLAN_GBP 
IP_VXLAN_GBP_BYPASS_N_NEXT 

Definition at line 540 of file decap.c.

Function Documentation

static u32 buf_fib_index ( vlib_buffer_t b,
u32  is_ip4 
)
inlinestatic

Definition at line 52 of file decap.c.

+ Here is the caller graph for this function:

static u8* format_vxlan_gbp_rx_trace ( u8 s,
va_list *  args 
)
static

Definition at line 35 of file decap.c.

+ Here is the call graph for this function:

static uword ip4_vxlan_gbp_bypass ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 947 of file decap.c.

+ Here is the call graph for this function:

clib_error_t* ip4_vxlan_gbp_bypass_init ( vlib_main_t vm)

Definition at line 973 of file decap.c.

static uword ip6_vxlan_gbp_bypass ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 981 of file decap.c.

+ Here is the call graph for this function:

clib_error_t* ip6_vxlan_gbp_bypass_init ( vlib_main_t vm)

Definition at line 1007 of file decap.c.

static uword ip_vxlan_gbp_bypass_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
u32  is_ip4 
)
inlinestatic

Definition at line 548 of file decap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static vxlan_gbp_tunnel_t* vxlan4_gbp_find_tunnel ( vxlan_gbp_main_t vxm,
last_tunnel_cache4 cache,
u32  fib_index,
ip4_header_t ip4_0,
vxlan_gbp_header_t vxlan_gbp0,
vxlan_gbp_tunnel_t **  stats_t0 
)
inlinestatic

Definition at line 68 of file decap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword vxlan4_gbp_input ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 484 of file decap.c.

+ Here is the call graph for this function:

static vxlan_gbp_tunnel_t* vxlan6_gbp_find_tunnel ( vxlan_gbp_main_t vxm,
last_tunnel_cache6 cache,
u32  fib_index,
ip6_header_t ip6_0,
vxlan_gbp_header_t vxlan_gbp0,
vxlan_gbp_tunnel_t **  stats_t0 
)
inlinestatic

Definition at line 115 of file decap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword vxlan6_gbp_input ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 491 of file decap.c.

+ Here is the call graph for this function:

static uword vxlan_gbp_input ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame,
u32  is_ip4 
)
inlinestatic

Definition at line 165 of file decap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_node_registration_t ip4_vxlan_gbp_bypass_node
Initial value:
=
{
.function = ip4_vxlan_gbp_bypass,
.name = "ip4-vxlan-gbp-bypass",
.vector_size = sizeof (u32),
.n_next_nodes = IP_VXLAN_GBP_BYPASS_N_NEXT,
.next_nodes = {
[IP_VXLAN_GBP_BYPASS_NEXT_VXLAN_GBP] = "vxlan4-gbp-input",
},
.format_buffer = format_ip4_header,
}
format_function_t format_ip4_header
Definition: format.h:83
static uword ip4_vxlan_gbp_bypass(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: decap.c:947
unsigned int u32
Definition: types.h:88
u8 * format_ip4_forward_next_trace(u8 *s, va_list *args)
Definition: ip4_forward.c:988

(constructor) VLIB_REGISTER_NODE (ip4_vxlan_gbp_bypass_node)

Definition at line 954 of file decap.c.

vlib_node_registration_t ip6_vxlan_gbp_bypass_node
Initial value:
=
{
.function = ip6_vxlan_gbp_bypass,
.name = "ip6-vxlan-gbp-bypass",
.vector_size = sizeof (u32),
.n_next_nodes = IP_VXLAN_GBP_BYPASS_N_NEXT,
.next_nodes = {
[IP_VXLAN_GBP_BYPASS_NEXT_VXLAN_GBP] = "vxlan6-gbp-input",
},
.format_buffer = format_ip6_header,
}
static uword ip6_vxlan_gbp_bypass(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: decap.c:981
unsigned int u32
Definition: types.h:88
format_function_t format_ip6_header
Definition: format.h:97
u8 * format_ip6_forward_next_trace(u8 *s, va_list *args)
Definition: ip6_forward.c:768

(constructor) VLIB_REGISTER_NODE (ip6_vxlan_gbp_bypass_node)

Definition at line 988 of file decap.c.

vlib_node_registration_t vxlan4_gbp_input_node
Initial value:
=
{
.function = vxlan4_gbp_input,
.name = "vxlan4-gbp-input",
.vector_size = sizeof (u32),
.n_errors = VXLAN_GBP_N_ERROR,
.error_strings = vxlan_gbp_error_strings,
.n_next_nodes = VXLAN_GBP_INPUT_N_NEXT,
.format_trace = format_vxlan_gbp_rx_trace,
.next_nodes = {
#define _(s,n)
},
}
#define foreach_vxlan_gbp_input_next
Definition: vxlan_gbp.h:125
static u8 * format_vxlan_gbp_rx_trace(u8 *s, va_list *args)
Definition: decap.c:35
unsigned int u32
Definition: types.h:88
static char * vxlan_gbp_error_strings[]
Definition: decap.c:497
static uword vxlan4_gbp_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: decap.c:484

(constructor) VLIB_REGISTER_NODE (vxlan4_gbp_input_node)

Definition at line 22 of file decap.c.

vlib_node_registration_t vxlan6_gbp_input_node
Initial value:
=
{
.function = vxlan6_gbp_input,
.name = "vxlan6-gbp-input",
.vector_size = sizeof (u32),
.n_errors = VXLAN_GBP_N_ERROR,
.error_strings = vxlan_gbp_error_strings,
.n_next_nodes = VXLAN_GBP_INPUT_N_NEXT,
.next_nodes = {
#define _(s,n)
},
.format_trace = format_vxlan_gbp_rx_trace,
}
#define foreach_vxlan_gbp_input_next
Definition: vxlan_gbp.h:125
static u8 * format_vxlan_gbp_rx_trace(u8 *s, va_list *args)
Definition: decap.c:35
unsigned int u32
Definition: types.h:88
static char * vxlan_gbp_error_strings[]
Definition: decap.c:497
static uword vxlan6_gbp_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: decap.c:491

(constructor) VLIB_REGISTER_NODE (vxlan6_gbp_input_node)

Definition at line 23 of file decap.c.

char* vxlan_gbp_error_strings[]
static
Initial value:
= {
#define vxlan_gbp_error(n,s)
}

Definition at line 497 of file decap.c.