aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Lo <loj@cisco.com>2016-10-24 12:13:27 -0400
committerJohn Lo <loj@cisco.com>2016-10-24 12:13:27 -0400
commit0c38ea3e7bac5577698f0dcf5c0b493a97d2a9ce (patch)
treea514185183beba718e0176a81f4f2a729984f7c0
parent9c2964ce01fa05c715499206cf3d0f610c5c334d (diff)
Fix VXLAN tunnel delete crash
Change-Id: I610648f28b7504798da9e377ea099629aa7a5150 Signed-off-by: John Lo <loj@cisco.com>
-rw-r--r--vnet/vnet/vxlan/vxlan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnet/vnet/vxlan/vxlan.c b/vnet/vnet/vxlan/vxlan.c
index 5b521dbeeb8..b90704aa54c 100644
--- a/vnet/vnet/vxlan/vxlan.c
+++ b/vnet/vnet/vxlan/vxlan.c
@@ -369,13 +369,13 @@ int vnet_vxlan_add_del_tunnel
if (!a->is_ip6)
{
hash_unset (vxm->vxlan4_tunnel_by_key, key4.as_u64);
- ip4_sw_interface_enable_disable(sw_if_index, 1);
+ ip4_sw_interface_enable_disable(t->sw_if_index, 1);
}
else
{
hash_unset_mem (vxm->vxlan6_tunnel_by_key, t->key6);
clib_mem_free (t->key6);
- ip6_sw_interface_enable_disable(sw_if_index, 1);
+ ip6_sw_interface_enable_disable(t->sw_if_index, 1);
}
vec_free (t->rewrite);
pool_put (vxm->tunnels, t);