diff options
author | Eyal Bari <ebari@cisco.com> | 2017-04-07 23:14:17 +0300 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2017-04-24 22:33:14 +0000 |
commit | b1352ed0ac39aaa7be7542275d1d43fa64ab28ac (patch) | |
tree | 9afdb2ad10cf52bb9a11f67acc555008103072d6 /src/vnet/lisp-gpe/interface.c | |
parent | 86326daeaa10c5ce4a8aa0b6d97c75a3bbb73493 (diff) |
BD:unify bridge domain creation code
Change-Id: I29082e7a0c556069180a157e55b3698cf8cd38c7
Signed-off-by: Eyal Bari <ebari@cisco.com>
Diffstat (limited to 'src/vnet/lisp-gpe/interface.c')
-rw-r--r-- | src/vnet/lisp-gpe/interface.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/vnet/lisp-gpe/interface.c b/src/vnet/lisp-gpe/interface.c index 4760f44833a..0598c048cf5 100644 --- a/src/vnet/lisp-gpe/interface.c +++ b/src/vnet/lisp-gpe/interface.c @@ -705,11 +705,10 @@ void lisp_gpe_del_l2_iface (lisp_gpe_main_t * lgm, u32 vni, u32 bd_id) { tunnel_lookup_t *l2_ifaces = &lgm->l2_ifaces; - u16 bd_index; - uword *hip; - bd_index = bd_find_or_add_bd_index (&bd_main, bd_id); - hip = hash_get (l2_ifaces->hw_if_index_by_dp_table, bd_index); + u32 bd_index = bd_find_index (&bd_main, bd_id); + ASSERT (bd_index != ~0); + uword *hip = hash_get (l2_ifaces->hw_if_index_by_dp_table, bd_index); if (hip == 0) { |