vppinfra: add new bihash exports 74/34674/3
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>
Thu, 2 Dec 2021 13:40:06 +0000 (14:40 +0100)
committerDamjan Marion <dmarion@me.com>
Mon, 21 Mar 2022 11:27:29 +0000 (11:27 +0000)
commit17ecd853e9efc40023185ecdf38c37d23dd8a0ce
tree6782299c2349ffb932eeef5773230182a469791d
parentd0d4b43374f6cb873ef189d91cab4482753e0f38
vppinfra: add new bihash exports

This adds two new exported functions
for the clib_bihash

* clib_bihash_add_with_overwrite_cb allowing
to pass a callback to be called on overwriting
a key with bucket lock held.
* clib_bihash_add_del_with_hash doing an add_del
with a precomputed hash.

Type: feature

Change-Id: I1590c933fa7cf21e6a8ada89b3456a60c4988244
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
src/vppinfra/bihash_doc.h
src/vppinfra/bihash_template.c
src/vppinfra/bihash_template.h