16 #ifndef SRC_VNET_SESSION_SESSION_TABLE_H_ 17 #define SRC_VNET_SESSION_SESSION_TABLE_H_ 23 typedef struct _session_lookup_table
28 clib_bihash_16_8_t v4_session_hash;
29 clib_bihash_48_8_t v6_session_hash;
34 clib_bihash_16_8_t v4_half_open_hash;
35 clib_bihash_48_8_t v6_half_open_hash;
56 #define SESSION_TABLE_INVALID_INDEX ((u32)~0) 57 #define SESSION_LOCAL_TABLE_PREFIX ((u32)~0) 58 #define SESSION_INVALID_INDEX ((u32)~0) 59 #define SESSION_INVALID_HANDLE ((u64)~0) 60 #define SESSION_DROP_HANDLE (((u64)~0) - 1) 77 #define session_table_foreach(VAR, BODY) \ 78 pool_foreach(VAR, _get_session_tables (), BODY)
#define CLIB_CACHE_LINE_ALIGN_MARK(mark)
struct _session_rules_table_t session_rules_table_t
int(* ip4_session_table_walk_fn_t)(clib_bihash_kv_16_8_t *kvp, void *ctx)
void ip4_session_table_walk_cb(clib_bihash_kv_16_8_t *kvp, void *arg)
u32 session_table_index(session_table_t *slt)
void ip4_session_table_walk(clib_bihash_16_8_t *hash, ip4_session_table_walk_fn_t fn, void *arg)
void session_table_init(session_table_t *slt, u8 fib_proto)
Initialize session table hash tables.
session_table_t * session_table_get(u32 table_index)
session_table_t * session_table_alloc(void)
struct _session_lookup_table session_table_t