FD.io VPP  v18.10-34-gcce845e
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_VXLAN_BYPASS_NEXT_DROP,
  IP_VXLAN_BYPASS_NEXT_VXLAN, IP_VXLAN_BYPASS_N_NEXT, IP_VXLAN_BYPASS_NEXT_DROP, IP_VXLAN_BYPASS_NEXT_VXLAN,
  IP_VXLAN_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)
 
static uword gtpu4_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static uword gtpu6_input (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)
 
static uword ip4_gtpu_bypass (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
clib_error_tip4_gtpu_bypass_init (vlib_main_t *vm)
 
static uword ip6_gtpu_bypass (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

#define gtpu_error (   n,
 
)    s,

Enumeration Type Documentation

Enumerator
IP_GENEVE_BYPASS_NEXT_DROP 
IP_GENEVE_BYPASS_NEXT_GENEVE 
IP_GENEVE_BYPASS_N_NEXT 
IP_VXLAN_BYPASS_NEXT_DROP 
IP_VXLAN_BYPASS_NEXT_VXLAN 
IP_VXLAN_BYPASS_N_NEXT 
IP_VXLAN_BYPASS_NEXT_DROP 
IP_VXLAN_BYPASS_NEXT_VXLAN 
IP_VXLAN_BYPASS_N_NEXT 
IP_GTPU_BYPASS_NEXT_DROP 
IP_GTPU_BYPASS_NEXT_GTPU 
IP_GTPU_BYPASS_N_NEXT 

Definition at line 857 of file gtpu_decap.c.

Function Documentation

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:

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

Definition at line 788 of file gtpu_decap.c.

+ Here is the call graph for this function:

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

Definition at line 796 of file gtpu_decap.c.

+ Here is the call graph for this function:

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:

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

Definition at line 1246 of file gtpu_decap.c.

+ Here is the call graph for this function:

clib_error_t* ip4_gtpu_bypass_init ( vlib_main_t vm)

Definition at line 1271 of file gtpu_decap.c.

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

Definition at line 1277 of file gtpu_decap.c.

+ Here is the call graph for this function:

clib_error_t* ip6_gtpu_bypass_init ( vlib_main_t vm)

Definition at line 1302 of file gtpu_decap.c.

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 864 of file gtpu_decap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

vlib_node_registration_t gtpu4_input_node
Initial value:
= {
.function = gtpu4_input,
.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:803
static uword gtpu4_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: gtpu_decap.c:788
#define foreach_gtpu_input_next
Definition: gtpu.h:178

(constructor) VLIB_REGISTER_NODE (gtpu4_input_node)

Definition at line 22 of file gtpu_decap.c.

vlib_node_registration_t gtpu6_input_node
Initial value:
= {
.function = gtpu6_input,
.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
static uword gtpu6_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: gtpu_decap.c:796
unsigned int u32
Definition: types.h:88
static char * gtpu_error_strings[]
Definition: gtpu_decap.c:803
#define foreach_gtpu_input_next
Definition: gtpu.h:178

(constructor) VLIB_REGISTER_NODE (gtpu6_input_node)

Definition at line 23 of file gtpu_decap.c.

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

Definition at line 803 of file gtpu_decap.c.

vlib_node_registration_t ip4_gtpu_bypass_node
Initial value:
= {
.function = ip4_gtpu_bypass,
.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:988
static uword ip4_gtpu_bypass(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: gtpu_decap.c:1246

(constructor) VLIB_REGISTER_NODE (ip4_gtpu_bypass_node)

Definition at line 1253 of file gtpu_decap.c.

vlib_node_registration_t ip6_gtpu_bypass_node
Initial value:
= {
.function = ip6_gtpu_bypass,
.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
static uword ip6_gtpu_bypass(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: gtpu_decap.c:1277
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_gtpu_bypass_node)

Definition at line 1284 of file gtpu_decap.c.