X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fbihash_template.h;h=85c5d6505c03a62a8536cf2876b8a2e8b8fd9c69;hb=42b29ba3d4a30e4bf660f3a0a6a4af40d62861fe;hp=07adeb853ec122a60d16349db5bec645548677b6;hpb=ec9bf61fcb481b223d4c3e636e78f6cf9997ca57;p=vpp.git diff --git a/src/vppinfra/bihash_template.h b/src/vppinfra/bihash_template.h index 07adeb853ec..85c5d6505c0 100644 --- 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 - if (PREDICT_FALSE (alloc_arena (h) == 0)) + if (PREDICT_FALSE (h->instantiated == 0)) return -1; #endif @@ -453,7 +453,7 @@ static inline void BV (clib_bihash_prefetch_data) BVT (clib_bihash_bucket) * b; #if BIHASH_LAZY_INSTANTIATE - if (PREDICT_FALSE (alloc_arena (h) == 0)) + if (PREDICT_FALSE (h->instantiated == 0)) return; #endif @@ -489,7 +489,7 @@ static inline int BV (clib_bihash_search_inline_2_with_hash) ASSERT (valuep); #if BIHASH_LAZY_INSTANTIATE - if (PREDICT_FALSE (alloc_arena (h) == 0)) + if (PREDICT_FALSE (h->instantiated == 0)) return -1; #endif