diff options
author | 2016-10-24 12:13:27 -0400 | |
---|---|---|
committer | 2016-10-24 12:13:27 -0400 | |
commit | 0c38ea3e7bac5577698f0dcf5c0b493a97d2a9ce (patch) | |
tree | a514185183beba718e0176a81f4f2a729984f7c0 /vnet | |
parent | 9c2964ce01fa05c715499206cf3d0f610c5c334d (diff) |
Fix VXLAN tunnel delete crash
Change-Id: I610648f28b7504798da9e377ea099629aa7a5150
Signed-off-by: John Lo <loj@cisco.com>
Diffstat (limited to 'vnet')
-rw-r--r-- | vnet/vnet/vxlan/vxlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vnet/vnet/vxlan/vxlan.c b/vnet/vnet/vxlan/vxlan.c index 5b521dbe..b90704aa 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); |