aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2017-04-05 10:06:03 +0200
committerFlorin Coras <florin.coras@gmail.com>2017-04-05 15:19:47 +0000
commitc6cd26d520195ffcc6baa523298a6e762f6579aa (patch)
tree0a3be096d94821a942fb23fc5a7d58aff353a9fc
parent7fd3f513c7df198c45204eba0a3e9a3abe509593 (diff)
LISP: fix crash when GPE interface is re-added, VPP-685
Change-Id: Ib83baf6ddec4ac192f6b4123d9eb599fb370fd0c Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
-rw-r--r--src/vnet/lisp-cp/control.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/lisp-cp/control.c b/src/vnet/lisp-cp/control.c
index 3fda6ac250a..5c901f368c3 100644
--- a/src/vnet/lisp-cp/control.c
+++ b/src/vnet/lisp-cp/control.c
@@ -866,11 +866,11 @@ vnet_lisp_eid_table_map (u32 vni, u32 dp_id, u8 is_l2, u8 is_add)
"mapping!", vni, dp_id);
return -1;
}
- hash_unset (dp_table_by_vni[0], vni);
- hash_unset (vni_by_dp_table[0], dp_id);
-
/* remove dp iface */
dp_add_del_iface (lcm, vni, is_l2, 0);
+
+ hash_unset (dp_table_by_vni[0], vni);
+ hash_unset (vni_by_dp_table[0], dp_id);
}
return 0;