summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/bihash_doc.h
diff options
context:
space:
mode:
authorPaul Atkins <patkins@graphiant.com>2021-01-19 15:22:23 +0000
committerDave Barach <openvpp@barachs.net>2021-02-01 17:20:32 +0000
commit2ac41357bc15dce578f67d53c25f2de357185e71 (patch)
tree9a140bee266b1b695041845f24534e2a17177696 /src/vppinfra/bihash_doc.h
parent21ed5e8adeca5366073c750572b089f7656f845a (diff)
vppinfra: add defines for bihash add and delete
When calling the bihash_add_del... functions some callers add a comment beside the value to indicate this is the is_add param. Make the code easier to read by adding defines for add and delete that the callers can use instead of having to use 0 or 1. Type: improvement Signed-off-by: Paul Atkins <patkins@graphiant.com> Change-Id: Iab5f7c8e8df12ac62fc7e726ca1798622dcdb42c
Diffstat (limited to 'src/vppinfra/bihash_doc.h')
-rw-r--r--src/vppinfra/bihash_doc.h2
1 files changed, 1 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