aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/bihash_template.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/bihash_template.c')
-rw-r--r--src/vppinfra/bihash_template.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vppinfra/bihash_template.c b/src/vppinfra/bihash_template.c
index 561855a5644..555c2e00cfb 100644
--- a/src/vppinfra/bihash_template.c
+++ b/src/vppinfra/bihash_template.c
@@ -390,6 +390,11 @@ void BV (clib_bihash_set_kvp_format_fn) (BVT (clib_bihash) * h,
h->kvp_fmt_fn = kvp_fmt_fn;
}
+int BV (clib_bihash_is_initialised) (const BVT (clib_bihash) * h)
+{
+ return (h->instantiated != 0);
+}
+
void BV (clib_bihash_free) (BVT (clib_bihash) * h)
{
int i;