FD.io VPP  v19.04.1-1-ge4a0f9f
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_vxlan_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)
 
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)
 
static vxlan_gbp_input_next_t vxlan_gbp_tunnel_get_next (const vxlan_gbp_tunnel_t *t, vlib_buffer_t *b0)
 
static uword vxlan_gbp_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, u8 is_ip4)
 
VLIB_NODE_FN() vxlan4_gbp_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() vxlan6_gbp_input_node (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)
 
VLIB_NODE_FN() ip4_vxlan_gbp_bypass_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
clib_error_tip4_vxlan_gbp_bypass_init (vlib_main_t *vm)
 
VLIB_NODE_FN() ip6_vxlan_gbp_bypass_node (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

static char * vxlan_gbp_error_strings []
 
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...
 
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 113 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 570 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 33 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 1001 of file decap.c.

VLIB_NODE_FN() ip4_vxlan_gbp_bypass_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 976 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 1034 of file decap.c.

VLIB_NODE_FN() ip6_vxlan_gbp_bypass_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 1009 of file decap.c.

+ Here is the call graph for this function:

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 578 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 
)
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:

VLIB_NODE_FN() vxlan4_gbp_input_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 517 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 
)
inlinestatic

Definition at line 116 of file decap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VLIB_NODE_FN() vxlan6_gbp_input_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 524 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,
u8  is_ip4 
)
inlinestatic

Definition at line 188 of file decap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static vxlan_gbp_input_next_t vxlan_gbp_tunnel_get_next ( const vxlan_gbp_tunnel_t t,
vlib_buffer_t b0 
)
inlinestatic

Definition at line 164 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:
=
{
.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
unsigned int u32
Definition: types.h:88
u8 * format_ip4_forward_next_trace(u8 *s, va_list *args)
Definition: ip4_forward.c:990

(constructor) VLIB_REGISTER_NODE (ip4_vxlan_gbp_bypass_node)

Definition at line 984 of file decap.c.

vlib_node_registration_t ip6_vxlan_gbp_bypass_node
Initial value:
=
{
.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,
}
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:803

(constructor) VLIB_REGISTER_NODE (ip6_vxlan_gbp_bypass_node)

Definition at line 1017 of file decap.c.

vlib_node_registration_t vxlan4_gbp_input_node
Initial value:
=
{
.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:133
static u8 * format_vxlan_gbp_rx_trace(u8 *s, va_list *args)
Definition: decap.c:33
unsigned int u32
Definition: types.h:88
static char * vxlan_gbp_error_strings[]
Definition: decap.c:531

(constructor) VLIB_REGISTER_NODE (vxlan4_gbp_input_node)

Definition at line 539 of file decap.c.

vlib_node_registration_t vxlan6_gbp_input_node
Initial value:
=
{
.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:133
static u8 * format_vxlan_gbp_rx_trace(u8 *s, va_list *args)
Definition: decap.c:33
unsigned int u32
Definition: types.h:88
static char * vxlan_gbp_error_strings[]
Definition: decap.c:531

(constructor) VLIB_REGISTER_NODE (vxlan6_gbp_input_node)

Definition at line 554 of file decap.c.

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

Definition at line 531 of file decap.c.