FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
decap.c File Reference
+ Include dependency graph for decap.c:

Go to the source code of this file.

Data Structures

struct  geneve_rx_trace_t
 

Macros

#define geneve_error(n, s)   s,
 

Enumerations

enum  ip_vxan_bypass_next_t {
  IP_GENEVE_BYPASS_NEXT_DROP, IP_GENEVE_BYPASS_NEXT_GENEVE, IP_GENEVE_BYPASS_N_NEXT, IP_GTPU_BYPASS_NEXT_DROP,
  IP_GTPU_BYPASS_NEXT_GTPU, IP_GTPU_BYPASS_N_NEXT
}
 

Functions

static u8format_geneve_rx_trace (u8 *s, va_list *args)
 
static u32 validate_geneve_fib (vlib_buffer_t *b, geneve_tunnel_t *t, u32 is_ip4)
 
static uword geneve_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, u32 is_ip4)
 
VLIB_NODE_FN() geneve4_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() geneve6_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static uword ip_geneve_bypass_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u32 is_ip4)
 
VLIB_NODE_FN() ip4_geneve_bypass_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip6_geneve_bypass_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

static char * geneve_error_strings []
 
vlib_node_registration_t geneve4_input_node
 (constructor) VLIB_REGISTER_NODE (geneve4_input_node) More...
 
vlib_node_registration_t geneve6_input_node
 (constructor) VLIB_REGISTER_NODE (geneve6_input_node) More...
 
vlib_node_registration_t ip4_geneve_bypass_node
 (constructor) VLIB_REGISTER_NODE (ip4_geneve_bypass_node) More...
 
vlib_node_registration_t ip6_geneve_bypass_node
 (constructor) VLIB_REGISTER_NODE (ip6_geneve_bypass_node) More...
 

Macro Definition Documentation

◆ geneve_error

#define geneve_error (   n,
 
)    s,

Enumeration Type Documentation

◆ ip_vxan_bypass_next_t

Enumerator
IP_GENEVE_BYPASS_NEXT_DROP 
IP_GENEVE_BYPASS_NEXT_GENEVE 
IP_GENEVE_BYPASS_N_NEXT 
IP_GTPU_BYPASS_NEXT_DROP 
IP_GTPU_BYPASS_NEXT_GTPU 
IP_GTPU_BYPASS_N_NEXT 

Definition at line 852 of file decap.c.

Function Documentation

◆ format_geneve_rx_trace()

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

Definition at line 29 of file decap.c.

+ Here is the call graph for this function:

◆ geneve4_input_node()

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

Definition at line 794 of file decap.c.

+ Here is the call graph for this function:

◆ geneve6_input_node()

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

Definition at line 801 of file decap.c.

+ Here is the call graph for this function:

◆ geneve_input()

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

Definition at line 70 of file decap.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ip4_geneve_bypass_node()

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

Definition at line 1252 of file decap.c.

+ Here is the call graph for this function:

◆ ip6_geneve_bypass_node()

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

Definition at line 1274 of file decap.c.

+ Here is the call graph for this function:

◆ ip_geneve_bypass_inline()

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

Definition at line 860 of file decap.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validate_geneve_fib()

static u32 validate_geneve_fib ( vlib_buffer_t b,
geneve_tunnel_t t,
u32  is_ip4 
)
inlinestatic

Definition at line 51 of file decap.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ geneve4_input_node

vlib_node_registration_t geneve4_input_node
Initial value:
= {
.name = "geneve4-input",
.vector_size = sizeof (u32),
.n_errors = GENEVE_N_ERROR,
.error_strings = geneve_error_strings,
.n_next_nodes = GENEVE_INPUT_N_NEXT,
.next_nodes = {
#define _(s,n)
},
.format_trace = format_geneve_rx_trace,
}
static char * geneve_error_strings[]
Definition: decap.c:808
#define foreach_geneve_input_next
Definition: geneve.h:142
unsigned int u32
Definition: types.h:88
static u8 * format_geneve_rx_trace(u8 *s, va_list *args)
Definition: decap.c:29

(constructor) VLIB_REGISTER_NODE (geneve4_input_node)

Definition at line 816 of file decap.c.

◆ geneve6_input_node

vlib_node_registration_t geneve6_input_node
Initial value:
= {
.name = "geneve6-input",
.vector_size = sizeof (u32),
.n_errors = GENEVE_N_ERROR,
.error_strings = geneve_error_strings,
.n_next_nodes = GENEVE_INPUT_N_NEXT,
.next_nodes = {
#define _(s,n)
},
.format_trace = format_geneve_rx_trace,
}
static char * geneve_error_strings[]
Definition: decap.c:808
#define foreach_geneve_input_next
Definition: geneve.h:142
unsigned int u32
Definition: types.h:88
static u8 * format_geneve_rx_trace(u8 *s, va_list *args)
Definition: decap.c:29

(constructor) VLIB_REGISTER_NODE (geneve6_input_node)

Definition at line 834 of file decap.c.

◆ geneve_error_strings

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

Definition at line 808 of file decap.c.

◆ ip4_geneve_bypass_node

vlib_node_registration_t ip4_geneve_bypass_node
Initial value:
=
{
.name = "ip4-geneve-bypass",
.vector_size = sizeof (u32),
.n_next_nodes = IP_GENEVE_BYPASS_N_NEXT,.next_nodes =
{
[IP_GENEVE_BYPASS_NEXT_DROP] = "error-drop",
[IP_GENEVE_BYPASS_NEXT_GENEVE] = "geneve4-input",
},
.format_buffer = format_ip4_header,
}
format_function_t format_ip4_header
Definition: format.h:81
unsigned int u32
Definition: types.h:88
u8 * format_ip4_forward_next_trace(u8 *s, va_list *args)
Definition: ip4_forward.c:1229

(constructor) VLIB_REGISTER_NODE (ip4_geneve_bypass_node)

Definition at line 1260 of file decap.c.

◆ ip6_geneve_bypass_node

vlib_node_registration_t ip6_geneve_bypass_node
Initial value:
=
{
.name = "ip6-geneve-bypass",
.vector_size = sizeof (u32),
.n_next_nodes = IP_GENEVE_BYPASS_N_NEXT,
.next_nodes =
{
[IP_GENEVE_BYPASS_NEXT_DROP] = "error-drop",
[IP_GENEVE_BYPASS_NEXT_GENEVE] = "geneve6-input",
},
.format_buffer = format_ip6_header,
}
unsigned int u32
Definition: types.h:88
format_function_t format_ip6_header
Definition: format.h:95
u8 * format_ip6_forward_next_trace(u8 *s, va_list *args)
Definition: ip6_forward.c:951

(constructor) VLIB_REGISTER_NODE (ip6_geneve_bypass_node)

Definition at line 1282 of file decap.c.