Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vppinfra: fix RC in bihash instantiation
[vpp.git]
/
src
/
vppinfra
/
bihash_template.c
diff --git
a/src/vppinfra/bihash_template.c
b/src/vppinfra/bihash_template.c
index
02d84ab
..
aac66cb
100644
(file)
--- a/
src/vppinfra/bihash_template.c
+++ b/
src/vppinfra/bihash_template.c
@@
-893,7
+893,7
@@
u8 *BV (format_bihash) (u8 * s, va_list * args)
s = format (s, "Hash table %s\n", h->name ? h->name : (u8 *) "(unnamed)");
#if BIHASH_LAZY_INSTANTIATE
s = format (s, "Hash table %s\n", h->name ? h->name : (u8 *) "(unnamed)");
#if BIHASH_LAZY_INSTANTIATE
- if (PREDICT_FALSE (
alloc_arena (h)
== 0))
+ if (PREDICT_FALSE (
h->instantiated
== 0))
return format (s, "[empty, uninitialized]");
#endif
return format (s, "[empty, uninitialized]");
#endif
@@
-994,7
+994,7
@@
void BV (clib_bihash_foreach_key_value_pair)
#if BIHASH_LAZY_INSTANTIATE
#if BIHASH_LAZY_INSTANTIATE
- if (PREDICT_FALSE (
alloc_arena (h)
== 0))
+ if (PREDICT_FALSE (
h->instantiated
== 0))
return;
#endif
return;
#endif