FD.io VPP  v19.08.1-401-g8e4ed521a
Vector Packet Processing
gtpu_decap.c File Reference
+ Include dependency graph for gtpu_decap.c:

Go to the source code of this file.

Data Structures

struct  gtpu_rx_trace_t
 

Macros

#define gtpu_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_gtpu_rx_trace (u8 *s, va_list *args)
 
static u32 validate_gtpu_fib (vlib_buffer_t *b, gtpu_tunnel_t *t, u32 is_ip4)
 
static uword gtpu_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, u32 is_ip4)
 
VLIB_NODE_FN() gtpu4_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() gtpu6_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static uword ip_gtpu_bypass_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u32 is_ip4)
 
VLIB_NODE_FN() ip4_gtpu_bypass_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
clib_error_tip4_gtpu_bypass_init (vlib_main_t *vm)
 
VLIB_NODE_FN() ip6_gtpu_bypass_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
clib_error_tip6_gtpu_bypass_init (vlib_main_t *vm)
 

Variables

vlib_node_registration_t gtpu4_input_node
 (constructor) VLIB_REGISTER_NODE (gtpu4_input_node) More...
 
vlib_node_registration_t gtpu6_input_node
 (constructor) VLIB_REGISTER_NODE (gtpu6_input_node) More...
 
static char * gtpu_error_strings []
 
vlib_node_registration_t ip4_gtpu_bypass_node
 (constructor) VLIB_REGISTER_NODE (ip4_gtpu_bypass_node) More...
 
vlib_node_registration_t ip6_gtpu_bypass_node
 (constructor) VLIB_REGISTER_NODE (ip6_gtpu_bypass_node) More...
 

Macro Definition Documentation

◆ gtpu_error

#define gtpu_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 801 of file gtpu_decap.c.

Function Documentation

◆ format_gtpu_rx_trace()

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

Definition at line 32 of file gtpu_decap.c.

+ Here is the call graph for this function:

◆ gtpu4_input_node()

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

Definition at line 740 of file gtpu_decap.c.

+ Here is the call graph for this function:

◆ gtpu6_input_node()

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

Definition at line 747 of file gtpu_decap.c.

+ Here is the call graph for this function:

◆ gtpu_input()

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

Definition at line 71 of file gtpu_decap.c.

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

◆ ip4_gtpu_bypass_init()

clib_error_t* ip4_gtpu_bypass_init ( vlib_main_t vm)

Definition at line 1212 of file gtpu_decap.c.

◆ ip4_gtpu_bypass_node()

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

Definition at line 1189 of file gtpu_decap.c.

+ Here is the call graph for this function:

◆ ip6_gtpu_bypass_init()

clib_error_t* ip6_gtpu_bypass_init ( vlib_main_t vm)

Definition at line 1241 of file gtpu_decap.c.

◆ ip6_gtpu_bypass_node()

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

Definition at line 1218 of file gtpu_decap.c.

+ Here is the call graph for this function:

◆ ip_gtpu_bypass_inline()

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

Definition at line 808 of file gtpu_decap.c.

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

◆ validate_gtpu_fib()

static u32 validate_gtpu_fib ( vlib_buffer_t b,
gtpu_tunnel_t t,
u32  is_ip4 
)
inlinestatic

Definition at line 52 of file gtpu_decap.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ gtpu4_input_node

vlib_node_registration_t gtpu4_input_node
Initial value:
= {
.name = "gtpu4-input",
.vector_size = sizeof (u32),
.n_errors = GTPU_N_ERROR,
.error_strings = gtpu_error_strings,
.n_next_nodes = GTPU_INPUT_N_NEXT,
.next_nodes = {
#define _(s,n)
},
.format_trace = format_gtpu_rx_trace,
}
static u8 * format_gtpu_rx_trace(u8 *s, va_list *args)
Definition: gtpu_decap.c:32
unsigned int u32
Definition: types.h:88
static char * gtpu_error_strings[]
Definition: gtpu_decap.c:754
#define foreach_gtpu_input_next
Definition: gtpu.h:178

(constructor) VLIB_REGISTER_NODE (gtpu4_input_node)

Definition at line 761 of file gtpu_decap.c.

◆ gtpu6_input_node

vlib_node_registration_t gtpu6_input_node
Initial value:
= {
.name = "gtpu6-input",
.vector_size = sizeof (u32),
.n_errors = GTPU_N_ERROR,
.error_strings = gtpu_error_strings,
.n_next_nodes = GTPU_INPUT_N_NEXT,
.next_nodes = {
#define _(s,n)
},
.format_trace = format_gtpu_rx_trace,
}
static u8 * format_gtpu_rx_trace(u8 *s, va_list *args)
Definition: gtpu_decap.c:32
unsigned int u32
Definition: types.h:88
static char * gtpu_error_strings[]
Definition: gtpu_decap.c:754
#define foreach_gtpu_input_next
Definition: gtpu.h:178

(constructor) VLIB_REGISTER_NODE (gtpu6_input_node)

Definition at line 781 of file gtpu_decap.c.

◆ gtpu_error_strings

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

Definition at line 754 of file gtpu_decap.c.

◆ ip4_gtpu_bypass_node

vlib_node_registration_t ip4_gtpu_bypass_node
Initial value:
= {
.name = "ip4-gtpu-bypass",
.vector_size = sizeof (u32),
.n_next_nodes = IP_GTPU_BYPASS_N_NEXT,
.next_nodes = {
[IP_GTPU_BYPASS_NEXT_DROP] = "error-drop",
[IP_GTPU_BYPASS_NEXT_GTPU] = "gtpu4-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:1161

(constructor) VLIB_REGISTER_NODE (ip4_gtpu_bypass_node)

Definition at line 1196 of file gtpu_decap.c.

◆ ip6_gtpu_bypass_node

vlib_node_registration_t ip6_gtpu_bypass_node
Initial value:
= {
.name = "ip6-gtpu-bypass",
.vector_size = sizeof (u32),
.n_next_nodes = IP_GTPU_BYPASS_N_NEXT,
.next_nodes = {
[IP_GTPU_BYPASS_NEXT_DROP] = "error-drop",
[IP_GTPU_BYPASS_NEXT_GTPU] = "gtpu6-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:866

(constructor) VLIB_REGISTER_NODE (ip6_gtpu_bypass_node)

Definition at line 1225 of file gtpu_decap.c.