FD.io VPP  v18.11-rc0-18-g2a3fb1a
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...
 
void 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

#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:117

Definition at line 53 of file session_table.c.

Typedef Documentation

typedef struct _ip4_session_table_walk_ctx_t ip4_session_table_walk_ctx_t

Function Documentation

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

Definition at line 124 of file session_table.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ip4_session_table_walk_cb ( clib_bihash_kv_16_8_t kvp,
void *  arg 
)

Definition at line 117 of file session_table.c.

+ Here is the caller graph for this function:

session_table_t* session_table_alloc ( void  )

Definition at line 31 of file session_table.c.

+ Here is the caller graph for this function:

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:

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:

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

session_table_t* lookup_tables
static

Pool of session tables.

Definition at line 22 of file session_table.c.