Change-Id: If37d644a26132c42a04927f612eec5e891066451
Signed-off-by: Florin Coras <fcoras@cisco.com>
session_table_t *
session_table_get (u32 table_index)
{
session_table_t *
session_table_get (u32 table_index)
{
- if (vec_len (lookup_tables) <= table_index)
+ if (pool_is_free_index (lookup_tables, table_index))
- return vec_elt_at_index (lookup_tables, table_index);
+ return pool_elt_at_index (lookup_tables, table_index);
}
#define foreach_hash_table_parameter \
}
#define foreach_hash_table_parameter \