diff options
-rw-r--r-- | src/vppinfra/bihash_doc.h | 2 | ||||
-rw-r--r-- | src/vppinfra/bihash_template.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/vppinfra/bihash_doc.h b/src/vppinfra/bihash_doc.h index b4b6a4a969b..7c7e5179961 100644 --- a/src/vppinfra/bihash_doc.h +++ b/src/vppinfra/bihash_doc.h @@ -112,7 +112,7 @@ void clib_bihash_free (clib_bihash * h); @param h - the bi-hash table to search @param add_v - the (key,value) pair to add - @param is_add - add=1, delete=0 + @param is_add - add=1 (BIHASH_ADD), delete=0 (BIHASH_DEL) @returns 0 on success, < 0 on error @note This function will replace an existing (key,value) pair if the new key matches an existing key diff --git a/src/vppinfra/bihash_template.h b/src/vppinfra/bihash_template.h index 4ab27aac38f..1ca0ae447f8 100644 --- a/src/vppinfra/bihash_template.h +++ b/src/vppinfra/bihash_template.h @@ -334,6 +334,9 @@ static inline uword BV (clib_bihash_get_offset) (BVT (clib_bihash) * h, return vp - hp; } +#define BIHASH_ADD 1 +#define BIHASH_DEL 0 + void BV (clib_bihash_init) (BVT (clib_bihash) * h, char *name, u32 nbuckets, uword memory_size); |