- clib_bihash_init_16_8 (&slt->v4_session_hash, "v4 session table",
- configured_v4_session_table_buckets,
- configured_v4_session_table_memory);
- clib_bihash_init_16_8 (&slt->v4_half_open_hash, "v4 half-open table",
- configured_v4_halfopen_table_buckets,
- configured_v4_halfopen_table_memory);
+ clib_bihash_init2_args_16_8_t _a, *a = &_a;
+
+ memset (a, 0, sizeof (*a));
+ a->h = &slt->v4_session_hash;
+ a->name = "v4 session table";
+ a->nbuckets = configured_v4_session_table_buckets;
+ a->memory_size = configured_v4_session_table_memory;
+ a->dont_add_to_all_bihash_list = 1;
+ a->instantiate_immediately = 1;
+ clib_bihash_init2_16_8 (a);
+
+ memset (a, 0, sizeof (*a));
+ a->h = &slt->v4_half_open_hash;
+ a->name = "v4 half-open table";
+ a->nbuckets = configured_v4_halfopen_table_buckets;
+ a->memory_size = configured_v4_halfopen_table_memory;
+ a->dont_add_to_all_bihash_list = 1;
+ a->instantiate_immediately = 1;
+ clib_bihash_init2_16_8 (a);