FD.io VPP  v16.12-rc0-308-g931be3a
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_ip4_table_t
 
struct  gid_ip6_table_t
 
struct  gid_mac_table
 
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)
 

Typedefs

typedef void(* foreach_subprefix_match_cb_t) (u32, void *)
 
typedef struct gid_mac_table gid_mac_table_t
 

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)
 
u32 gid_dictionary_sd_lookup (gid_dictionary_t *db, gid_address_t *dst, gid_address_t *src)
 
void gid_dictionary_init (gid_dictionary_t *db)
 
void gid_dict_foreach_subprefix (gid_dictionary_t *db, gid_address_t *eid, foreach_subprefix_match_cb_t cb, void *arg)
 

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.

Typedef Documentation

typedef void(* foreach_subprefix_match_cb_t) (u32, void *)

Definition at line 38 of file gid_dictionary.h.

Function Documentation

void gid_dict_foreach_subprefix ( gid_dictionary_t db,
gid_address_t eid,
foreach_subprefix_match_cb_t  cb,
void *  arg 
)

Definition at line 122 of file gid_dictionary.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 811 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 850 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 330 of file gid_dictionary.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gid_dictionary_sd_lookup ( gid_dictionary_t db,
gid_address_t dst,
gid_address_t src 
)

Definition at line 367 of file gid_dictionary.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: