return (void *) (uword) (rv + alloc_arena (h));
}
-void BV (clib_bihash_instantiate) (BVT (clib_bihash) * h)
+static void BV (clib_bihash_instantiate) (BVT (clib_bihash) * h)
{
uword bucket_size;
sizeof (vec_header_t) +
BIHASH_FREELIST_LENGTH * sizeof (u64));
freelist_vh->len = BIHASH_FREELIST_LENGTH;
- freelist_vh->dlmalloc_header_offset = 0xDEADBEEF;
h->sh->freelists_as_u64 =
(u64) BV (clib_bihash_get_offset) (h, freelist_vh->vector_data);
h->freelists = (void *) (freelist_vh->vector_data);
h->fmt_fn = NULL;
+ h->instantiated = 1;
}
void BV (clib_bihash_slave_init_svm)
}
}
clib_warning ("Couldn't find hash table %llx on clib_all_bihashes...",
- (u64) h);
+ (u64) (uword) h);
}
static