lisp: fix dangling references to bihash tables 77/22677/3
authorDave Barach <dave@barachs.net>
Fri, 11 Oct 2019 15:31:43 +0000 (11:31 -0400)
committerFlorin Coras <florin.coras@gmail.com>
Fri, 11 Oct 2019 18:22:04 +0000 (18:22 +0000)
commit11b40e7ead069eecac51eeed0b7effbf4d53ecf4
treedea5beb9c58568a044a4f6696ab69f87fea7c359
parentbbcfaac9571004d87998684c123354667b726532
lisp: fix dangling references to bihash tables

gid_ip4_table_t's and gid_ip6_table_t's are allocated from pools. They
MUST NOT be listed on the clib_all_bihash list to avoid dangling
references.

Switch to the clib_bihash_init2 API, which has the required knob.

Type: fix
Ticket: VPP-1788

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I49a17e937922c3af2e1c46b24e20883af51584a8
src/vnet/lisp-cp/gid_dictionary.c