vppinfra: add bihash_init2 22/21722/2
authorDave Barach <[email protected]>
Tue, 3 Sep 2019 14:57:19 +0000 (10:57 -0400)
committerDamjan Marion <[email protected]>
Tue, 3 Sep 2019 19:43:34 +0000 (19:43 +0000)
commit5bdc1f5245054f8b183b75f6b4442d45018afbe3
tree3419327c967dc07ff50d6a5db79ef97307a78ab0
parent08940a2cb8177ce6c89ba0e9146515978dc66560
vppinfra: add bihash_init2

Add controls to list / not list a specific bihash in clib_all_bihashes,
to immediately initialize a bihash.

clib_bihash_init2 is now the primary API. It takes a typical args_t
structure. clib_bihash_init becomes a compatibility widget. It
fabricates an args_t and calls init2...

Type: refactor
Ticket: VPP-1758

Signed-off-by: Dave Barach <[email protected]>
Change-Id: Ib3e1304884997cf7025af20bdc67a7dda290f15b
(cherry picked from commit bdf9b97774f02458ede6b7c7ae2d5728bddba000)
src/vppinfra/bihash_template.c
src/vppinfra/bihash_template.h