lisp: fix dangling references to bihash tables 78/22678/1
authorDave Barach <[email protected]>
Fri, 11 Oct 2019 15:31:43 +0000 (11:31 -0400)
committerDave Barach <[email protected]>
Fri, 11 Oct 2019 15:45:39 +0000 (15:45 +0000)
commit47a2a705d0f33c0da0be1e4c0cb59b2286c3306f
tree4344e7750ca6659a4166a373abad9742e503fe29
parent23afd57095dd279255de4679b0533d3d588f0e74
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 <[email protected]>
Change-Id: I49a17e937922c3af2e1c46b24e20883af51584a8
src/vnet/lisp-cp/gid_dictionary.c