aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorJon Loeliger <jdl@netgate.com>2018-02-23 17:02:41 -0600
committerJon Loeliger <jdl@netgate.com>2018-02-23 18:47:20 -0600
commit25ef2b5353b8acc3a53fc180355a7367330dfb83 (patch)
tree4a0e62975bdaf850fad76dacc314f3c931281fa0 /src/vnet
parent69d011915812561288e7055ed07ea6e83cecfe3b (diff)
VXLAN: Instance numbers now properly freed upon delete.
Fixes a small bookkeeping oversight where the VXLAN instance numbers were being freed erroneously by their device_instance number rather than the correct user_instance number. Change-Id: I08f6b2089c7a14cc8a8cb91f04f850f60ecec43b Signed-off-by: Jon Loeliger <jdl@netgate.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/vxlan/vxlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/vxlan/vxlan.c b/src/vnet/vxlan/vxlan.c
index 2aec321c8e2..97321421a84 100644
--- a/src/vnet/vxlan/vxlan.c
+++ b/src/vnet/vxlan/vxlan.c
@@ -556,7 +556,7 @@ int vnet_vxlan_add_del_tunnel
}
vnet_delete_hw_interface (vnm, t->hw_if_index);
- hash_unset (vxm->instance_used, instance);
+ hash_unset (vxm->instance_used, t->user_instance);
fib_node_deinit(&t->node);
vec_free (t->rewrite);