aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/vxlan-gbp/vxlan_gbp.c
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-09-11 07:39:43 -0700
committerDamjan Marion <dmarion@me.com>2018-09-12 10:11:18 +0000
commit79a05f547146e1eb972ec505e6605f604d3a3054 (patch)
treedf2d62133079b395b0694732df47059b32c34183 /src/vnet/vxlan-gbp/vxlan_gbp.c
parent0b48cdead5adf07fe684bd909a6f5282e249184c (diff)
VXLAN-GBP: use common types on the API
Change-Id: I11ec0d7048d36c30a97d437e5b0abd05f06ab0eb Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/vxlan-gbp/vxlan_gbp.c')
-rw-r--r--src/vnet/vxlan-gbp/vxlan_gbp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/vnet/vxlan-gbp/vxlan_gbp.c b/src/vnet/vxlan-gbp/vxlan_gbp.c
index 14b3e667dbf..253261dc9e5 100644
--- a/src/vnet/vxlan-gbp/vxlan_gbp.c
+++ b/src/vnet/vxlan-gbp/vxlan_gbp.c
@@ -352,8 +352,8 @@ mcast_shared_remove (ip46_address_t * dst)
hash_unset_mem_free (&vxlan_gbp_main.mcast_shared, dst);
}
-int vnet_vxlan_gbp_add_del_tunnel
- (vnet_vxlan_gbp_add_del_tunnel_args_t * a, u32 * sw_if_indexp)
+int vnet_vxlan_gbp_tunnel_add_del
+ (vnet_vxlan_gbp_tunnel_add_del_args_t * a, u32 * sw_if_indexp)
{
vxlan_gbp_main_t *vxm = &vxlan_gbp_main;
vxlan_gbp_tunnel_t *t = 0;
@@ -654,7 +654,7 @@ unformat_decap_next (unformat_input_t * input, va_list * args)
}
static clib_error_t *
-vxlan_gbp_add_del_tunnel_command_fn (vlib_main_t * vm,
+vxlan_gbp_tunnel_add_del_command_fn (vlib_main_t * vm,
unformat_input_t * input,
vlib_cli_command_t * cmd)
{
@@ -763,7 +763,7 @@ vxlan_gbp_add_del_tunnel_command_fn (vlib_main_t * vm,
if (vni >> 24)
return clib_error_return (0, "vni %d out of range", vni);
- vnet_vxlan_gbp_add_del_tunnel_args_t a = {
+ vnet_vxlan_gbp_tunnel_add_del_args_t a = {
.is_add = is_add,
.is_ip6 = ipv6_set,
.instance = instance,
@@ -773,7 +773,7 @@ vxlan_gbp_add_del_tunnel_command_fn (vlib_main_t * vm,
};
u32 tunnel_sw_if_index;
- int rv = vnet_vxlan_gbp_add_del_tunnel (&a, &tunnel_sw_if_index);
+ int rv = vnet_vxlan_gbp_tunnel_add_del (&a, &tunnel_sw_if_index);
switch (rv)
{
@@ -794,7 +794,7 @@ vxlan_gbp_add_del_tunnel_command_fn (vlib_main_t * vm,
default:
return clib_error_return
- (0, "vnet_vxlan_gbp_add_del_tunnel returned %d", rv);
+ (0, "vnet_vxlan_gbp_tunnel_add_del returned %d", rv);
}
return 0;
@@ -832,7 +832,7 @@ VLIB_CLI_COMMAND (create_vxlan_gbp_tunnel_command, static) = {
" {dst <remote-vtep-addr>|group <mcast-vtep-addr> <intf-name>} vni <nn>"
" [instance <id>]"
" [encap-vrf-id <nn>] [decap-next [l2|node <name>]] [del]",
- .function = vxlan_gbp_add_del_tunnel_command_fn,
+ .function = vxlan_gbp_tunnel_add_del_command_fn,
};
/* *INDENT-ON* */