Go to the source code of this file.
|
static int | lisp_gpe_rewrite (lisp_gpe_tunnel_t *t, lisp_gpe_sub_tunnel_t *st, locator_pair_t *lp) |
|
static int | weight_cmp (normalized_sub_tunnel_weights_t *a, normalized_sub_tunnel_weights_t *b) |
|
static void | compute_sub_tunnels_balancing_vector (lisp_gpe_tunnel_t *t) |
| Computes sub tunnel load balancing vector. More...
|
|
static void | create_sub_tunnels (lisp_gpe_main_t *lgm, lisp_gpe_tunnel_t *t) |
|
static int | add_del_ip_tunnel (vnet_lisp_gpe_add_del_fwd_entry_args_t *a, u8 is_l2, u32 *tun_index_res) |
|
static int | build_ip_adjacency (lisp_gpe_main_t *lgm, ip_adjacency_t *adj, u32 table_id, u32 vni, u32 tun_index, u32 n_sub_tun, u8 is_negative, u8 action, u8 ip_ver) |
|
static int | add_del_ip_fwd_entry (lisp_gpe_main_t *lgm, vnet_lisp_gpe_add_del_fwd_entry_args_t *a) |
|
static void | make_mac_fib_key (BVT(clib_bihash_kv)*kv, u16 bd_index, u8 src_mac[6], u8 dst_mac[6]) |
|
u32 | lisp_l2_fib_lookup (lisp_gpe_main_t *lgm, u16 bd_index, u8 src_mac[6], u8 dst_mac[6]) |
|
u32 | lisp_l2_fib_add_del_entry (lisp_gpe_main_t *lgm, u16 bd_index, u8 src_mac[6], u8 dst_mac[6], u32 val, u8 is_add) |
|
static void | l2_fib_init (lisp_gpe_main_t *lgm) |
|
static int | add_del_l2_fwd_entry (lisp_gpe_main_t *lgm, vnet_lisp_gpe_add_del_fwd_entry_args_t *a) |
|
int | vnet_lisp_gpe_add_del_fwd_entry (vnet_lisp_gpe_add_del_fwd_entry_args_t *a, u32 *hw_if_indexp) |
|
static clib_error_t * | lisp_gpe_add_del_fwd_entry_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static u8 * | format_decap_next (u8 *s, va_list *args) |
|
u8 * | format_lisp_gpe_tunnel (u8 *s, va_list *args) |
|
static clib_error_t * | show_lisp_gpe_tunnel_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
u8 | vnet_lisp_gpe_enable_disable_status (void) |
|
clib_error_t * | vnet_lisp_gpe_enable_disable (vnet_lisp_gpe_enable_disable_args_t *a) |
|
static clib_error_t * | lisp_gpe_enable_disable_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | lisp_show_iface_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
u8 * | format_vnet_lisp_gpe_status (u8 *s, va_list *args) |
|
clib_error_t * | lisp_gpe_init (vlib_main_t *vm) |
|
#define foreach_copy_field |
Value:_(encap_fib_index) \
_(decap_fib_index) \
_(decap_next_index) \
_(vni) \
_(action)
Definition at line 218 of file lisp_gpe.c.
Computes sub tunnel load balancing vector.
Algorithm is identical to that used for building unequal-cost multipath adjacencies
Definition at line 110 of file lisp_gpe.c.
static u8* format_decap_next |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
u8* format_lisp_gpe_tunnel |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
u8* format_vnet_lisp_gpe_status |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
static void make_mac_fib_key |
( |
BVT(clib_bihash_kv)* |
kv, |
|
|
u16 |
bd_index, |
|
|
u8 |
src_mac[6], |
|
|
u8 |
dst_mac[6] |
|
) |
| |
|
static |
u8 vnet_lisp_gpe_enable_disable_status |
( |
void |
| ) |
|
Initial value:= {
.path = "lisp gpe",
.short_help = "lisp gpe [enable|disable]",
}
static clib_error_t * lisp_gpe_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (enable_disable_lisp_gpe_command)
Definition at line 935 of file lisp_gpe.c.
Initial value:= {
.path = "lisp gpe tunnel",
.short_help = "lisp gpe tunnel add/del vni <vni> vrf <vrf> [leid <leid>]"
"reid <reid> [lloc <sloc> rloc <rloc>] [negative action <action>]",
}
static clib_error_t * lisp_gpe_add_del_fwd_entry_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (lisp_gpe_add_del_fwd_entry_command)
Definition at line 691 of file lisp_gpe.c.
Initial value:= {
.path = "show lisp gpe interface",
.short_help = "show lisp gpe interface",
}
static clib_error_t * lisp_show_iface_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (lisp_show_iface_command)
Definition at line 971 of file lisp_gpe.c.
Initial value:=
{
.path = "show lisp gpe tunnel",
}
static clib_error_t * show_lisp_gpe_tunnel_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (show_lisp_gpe_tunnel_command)
Definition at line 781 of file lisp_gpe.c.