FD.io VPP  v16.09
Vector Packet Processing
gid_dictionary.h File Reference
+ Include dependency graph for gid_dictionary.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gid_dictionary_t
 

Macros

#define GID_LOOKUP_MISS   ((u32)~0)
 
#define IP4_LOOKUP_DEFAULT_HASH_NUM_BUCKETS   (64 * 1024)
 
#define IP4_LOOKUP_DEFAULT_HASH_MEMORY_SIZE   (32<<20)
 
#define IP6_LOOKUP_DEFAULT_HASH_NUM_BUCKETS   (64 * 1024)
 
#define IP6_LOOKUP_DEFAULT_HASH_MEMORY_SIZE   (32<<20)
 
#define MAC_LOOKUP_DEFAULT_HASH_NUM_BUCKETS   (64 * 1024)
 
#define MAC_LOOKUP_DEFAULT_HASH_MEMORY_SIZE   (32<<20)
 

Functions

u32 gid_dictionary_add_del (gid_dictionary_t *db, gid_address_t *key, u32 value, u8 is_add)
 
u32 gid_dictionary_lookup (gid_dictionary_t *db, gid_address_t *key)
 
void gid_dictionary_init (gid_dictionary_t *db)
 

Macro Definition Documentation

#define GID_LOOKUP_MISS   ((u32)~0)

Definition at line 24 of file gid_dictionary.h.

#define IP4_LOOKUP_DEFAULT_HASH_MEMORY_SIZE   (32<<20)

Definition at line 28 of file gid_dictionary.h.

#define IP4_LOOKUP_DEFAULT_HASH_NUM_BUCKETS   (64 * 1024)

Definition at line 27 of file gid_dictionary.h.

#define IP6_LOOKUP_DEFAULT_HASH_MEMORY_SIZE   (32<<20)

Definition at line 32 of file gid_dictionary.h.

#define IP6_LOOKUP_DEFAULT_HASH_NUM_BUCKETS   (64 * 1024)

Definition at line 31 of file gid_dictionary.h.

#define MAC_LOOKUP_DEFAULT_HASH_MEMORY_SIZE   (32<<20)

Definition at line 36 of file gid_dictionary.h.

#define MAC_LOOKUP_DEFAULT_HASH_NUM_BUCKETS   (64 * 1024)

Definition at line 35 of file gid_dictionary.h.

Function Documentation

u32 gid_dictionary_add_del ( gid_dictionary_t db,
gid_address_t key,
u32  value,
u8  is_add 
)

Definition at line 316 of file gid_dictionary.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gid_dictionary_init ( gid_dictionary_t db)

Definition at line 422 of file gid_dictionary.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gid_dictionary_lookup ( gid_dictionary_t db,
gid_address_t key 
)

Definition at line 119 of file gid_dictionary.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: