FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
session_table.c File Reference
+ Include dependency graph for session_table.c:

Go to the source code of this file.

Macros

#define foreach_hash_table_parameter
 

Typedefs

typedef struct _ip4_session_table_walk_ctx_t ip4_session_table_walk_ctx_t
 

Functions

session_table_tsession_table_alloc (void)
 
u32 session_table_index (session_table_t *slt)
 
session_table_tsession_table_get (u32 table_index)
 
void session_table_init (session_table_t *slt, u8 fib_proto)
 Initialize session table hash tables. More...
 
static int ip4_session_table_walk_cb (clib_bihash_kv_16_8_t *kvp, void *arg)
 
void ip4_session_table_walk (clib_bihash_16_8_t *hash, ip4_session_table_walk_fn_t fn, void *arg)
 

Variables

static session_table_tlookup_tables
 Pool of session tables. More...
 

Macro Definition Documentation

◆ foreach_hash_table_parameter

#define foreach_hash_table_parameter
Value:
_(v4,session,buckets,20000) \
_(v4,session,memory,(64<<20)) \
_(v6,session,buckets,20000) \
_(v6,session,memory,(64<<20)) \
_(v4,halfopen,buckets,20000) \
_(v4,halfopen,memory,(64<<20)) \
_(v6,halfopen,buckets,20000) \
_(v6,halfopen,memory,(64<<20))
vhost_user_memory_t memory
Definition: vhost_user.h:148

Definition at line 53 of file session_table.c.

Typedef Documentation

◆ ip4_session_table_walk_ctx_t

typedef struct _ip4_session_table_walk_ctx_t ip4_session_table_walk_ctx_t

Function Documentation

◆ ip4_session_table_walk()

void ip4_session_table_walk ( clib_bihash_16_8_t *  hash,
ip4_session_table_walk_fn_t  fn,
void *  arg 
)

Definition at line 151 of file session_table.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ip4_session_table_walk_cb()

static int ip4_session_table_walk_cb ( clib_bihash_kv_16_8_t kvp,
void *  arg 
)
static

Definition at line 143 of file session_table.c.

+ Here is the caller graph for this function:

◆ session_table_alloc()

session_table_t* session_table_alloc ( void  )

Definition at line 31 of file session_table.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ session_table_get()

session_table_t* session_table_get ( u32  table_index)

Definition at line 46 of file session_table.c.

+ Here is the caller graph for this function:

◆ session_table_index()

u32 session_table_index ( session_table_t slt)

Definition at line 40 of file session_table.c.

+ Here is the caller graph for this function:

◆ session_table_init()

void session_table_init ( session_table_t slt,
u8  fib_proto 
)

Initialize session table hash tables.

If vpp configured with set of table parameters it uses them, otherwise it uses defaults above.

Definition at line 70 of file session_table.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ lookup_tables

session_table_t* lookup_tables
static

Pool of session tables.

Definition at line 22 of file session_table.c.