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.h
diff --git
a/src/vppinfra/bihash_template.h
b/src/vppinfra/bihash_template.h
index
07adeb8
..
85c5d65
100644
(file)
--- a/
src/vppinfra/bihash_template.h
+++ b/
src/vppinfra/bihash_template.h
@@
-388,7
+388,7
@@
static inline int BV (clib_bihash_search_inline_with_hash)
/* *INDENT-ON* */
#if BIHASH_LAZY_INSTANTIATE
/* *INDENT-ON* */
#if BIHASH_LAZY_INSTANTIATE
- if (PREDICT_FALSE (
alloc_arena (h)
== 0))
+ if (PREDICT_FALSE (
h->instantiated
== 0))
return -1;
#endif
return -1;
#endif
@@
-453,7
+453,7
@@
static inline void BV (clib_bihash_prefetch_data)
BVT (clib_bihash_bucket) * b;
#if BIHASH_LAZY_INSTANTIATE
BVT (clib_bihash_bucket) * b;
#if BIHASH_LAZY_INSTANTIATE
- if (PREDICT_FALSE (
alloc_arena (h)
== 0))
+ if (PREDICT_FALSE (
h->instantiated
== 0))
return;
#endif
return;
#endif
@@
-489,7
+489,7
@@
static inline int BV (clib_bihash_search_inline_2_with_hash)
ASSERT (valuep);
#if BIHASH_LAZY_INSTANTIATE
ASSERT (valuep);
#if BIHASH_LAZY_INSTANTIATE
- if (PREDICT_FALSE (
alloc_arena (h)
== 0))
+ if (PREDICT_FALSE (
h->instantiated
== 0))
return -1;
#endif
return -1;
#endif