FD.io VPP  v16.06
Vector Packet Processing
vxlan_gpe.c File Reference
+ Include dependency graph for vxlan_gpe.c:

Go to the source code of this file.

Macros

#define foreach_gpe_copy_field
 
#define foreach_copy_field
 

Functions

u8format_vxlan_gpe_tunnel (u8 *s, va_list *args)
 
static u8format_vxlan_gpe_name (u8 *s, va_list *args)
 
static int vxlan_gpe_name_renumber (vnet_hw_interface_t *hi, u32 new_dev_instance)
 
static uword dummy_interface_tx (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword dummy_set_rewrite (vnet_main_t *vnm, u32 sw_if_index, u32 l3_type, void *dst_address, void *rewrite, uword max_rewrite_bytes)
 
 VNET_DEVICE_CLASS (vxlan_gpe_device_class, static)
 
static u8format_vxlan_gpe_header_with_length (u8 *s, va_list *args)
 
 VNET_HW_INTERFACE_CLASS (vxlan_gpe_hw_class)
 
static int vxlan_gpe_rewrite (vxlan_gpe_tunnel_t *t)
 
int vnet_vxlan_gpe_add_del_tunnel (vnet_vxlan_gpe_add_del_tunnel_args_t *a, u32 *sw_if_indexp)
 
static u32 fib_index_from_fib_id (u32 fib_id)
 
static uword unformat_gpe_decap_next (unformat_input_t *input, va_list *args)
 
static clib_error_tvxlan_gpe_add_del_tunnel_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_vxlan_gpe_tunnel_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
clib_error_tvxlan_gpe_init (vlib_main_t *vm)
 

Variables

vxlan_gpe_main_t vxlan_gpe_main
 
vlib_cli_command_t create_vxlan_gpe_tunnel_command
 (constructor) VLIB_CLI_COMMAND (create_vxlan_gpe_tunnel_command) More...
 
vlib_cli_command_t show_vxlan_gpe_tunnel_command
 (constructor) VLIB_CLI_COMMAND (show_vxlan_gpe_tunnel_command) More...
 

Macro Definition Documentation

#define foreach_copy_field
Value:
_(src.as_u32) \
_(dst.as_u32) \
_(vni) \
_(encap_fib_index) \
_(decap_fib_index) \
_(decap_next_index)

Definition at line 131 of file vxlan_gpe.c.

#define foreach_gpe_copy_field
Value:
_(local.as_u32) \
_(remote.as_u32) \
_(vni) \
_(protocol) \
_(encap_fib_index) \
_(decap_fib_index)

Definition at line 123 of file vxlan_gpe.c.

Function Documentation

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

Definition at line 83 of file vxlan_gpe.c.

+ Here is the caller graph for this function:

static uword dummy_set_rewrite ( vnet_main_t vnm,
u32  sw_if_index,
u32  l3_type,
void dst_address,
void rewrite,
uword  max_rewrite_bytes 
)
static

Definition at line 91 of file vxlan_gpe.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 fib_index_from_fib_id ( u32  fib_id)
static

Definition at line 282 of file vxlan_gpe.c.

+ Here is the caller graph for this function:

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

Definition at line 109 of file vxlan_gpe.c.

+ Here is the call graph for this function:

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

Definition at line 56 of file vxlan_gpe.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_vxlan_gpe_tunnel ( u8 s,
va_list *  args 
)

Definition at line 19 of file vxlan_gpe.c.

+ Here is the call graph for this function:

static clib_error_t* show_vxlan_gpe_tunnel_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 430 of file vxlan_gpe.c.

+ Here is the call graph for this function:

static uword unformat_gpe_decap_next ( unformat_input_t input,
va_list *  args 
)
static

Definition at line 294 of file vxlan_gpe.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VNET_DEVICE_CLASS ( vxlan_gpe_device_class  ,
static   
)

+ Here is the caller graph for this function:

VNET_HW_INTERFACE_CLASS ( vxlan_gpe_hw_class  )

+ Here is the caller graph for this function:

int vnet_vxlan_gpe_add_del_tunnel ( vnet_vxlan_gpe_add_del_tunnel_args_t a,
u32 sw_if_indexp 
)

Definition at line 180 of file vxlan_gpe.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* vxlan_gpe_add_del_tunnel_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 315 of file vxlan_gpe.c.

+ Here is the call graph for this function:

clib_error_t* vxlan_gpe_init ( vlib_main_t vm)

Definition at line 453 of file vxlan_gpe.c.

+ Here is the call graph for this function:

static int vxlan_gpe_name_renumber ( vnet_hw_interface_t hi,
u32  new_dev_instance 
)
static

Definition at line 71 of file vxlan_gpe.c.

+ Here is the caller graph for this function:

static int vxlan_gpe_rewrite ( vxlan_gpe_tunnel_t t)
static

Definition at line 141 of file vxlan_gpe.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_cli_command_t create_vxlan_gpe_tunnel_command
Initial value:
= {
.path = "create vxlan-gpe tunnel",
.short_help =
"create vxlan-gpe tunnel local <ip4-addr> remote <ip4-addr>"
" vni <nn> [next-ip4][next-ip6][next-ethernet][next-nsh]"
" [encap-vrf-id <nn>] [decap-vrf-id <nn>]"
" [del]\n",
}
static clib_error_t * vxlan_gpe_add_del_tunnel_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: vxlan_gpe.c:315

(constructor) VLIB_CLI_COMMAND (create_vxlan_gpe_tunnel_command)

Definition at line 419 of file vxlan_gpe.c.

vlib_cli_command_t show_vxlan_gpe_tunnel_command
Initial value:
= {
.path = "show vxlan-gpe",
}
static clib_error_t * show_vxlan_gpe_tunnel_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: vxlan_gpe.c:430

(constructor) VLIB_CLI_COMMAND (show_vxlan_gpe_tunnel_command)

Definition at line 448 of file vxlan_gpe.c.

vxlan_gpe_main_t vxlan_gpe_main

Definition at line 17 of file vxlan_gpe.c.