FD.io VPP  v18.04-17-g3a0d853
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_nsh_table
 
struct  gid_l2_arp_ndp_table_t
 
struct  gid_dictionary_t
 

Macros

#define GID_LOOKUP_MISS   ((u32)~0)
 
#define GID_LOOKUP_MISS_L2   ((u64)~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)
 
#define ARP_NDP_LOOKUP_DEFAULT_HASH_NUM_BUCKETS   (64 * 1024)
 
#define ARP_NDP_LOOKUP_DEFAULT_HASH_MEMORY_SIZE   (32<<20)
 
#define NSH_LOOKUP_DEFAULT_HASH_NUM_BUCKETS   (64 * 1024)
 
#define NSH_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
 
typedef struct gid_nsh_table gid_nsh_table_t
 

Functions

u32 gid_dictionary_add_del (gid_dictionary_t *db, gid_address_t *key, u64 value, u8 is_add)
 
u64 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)
 
void gid_dict_foreach_l2_arp_ndp_entry (gid_dictionary_t *db, void(*cb)(BVT(clib_bihash_kv)*kvp, void *arg), void *ht)
 

Macro Definition Documentation

#define ARP_NDP_LOOKUP_DEFAULT_HASH_MEMORY_SIZE   (32<<20)

Definition at line 41 of file gid_dictionary.h.

#define ARP_NDP_LOOKUP_DEFAULT_HASH_NUM_BUCKETS   (64 * 1024)

Definition at line 40 of file gid_dictionary.h.

#define GID_LOOKUP_MISS   ((u32)~0)

Definition at line 24 of file gid_dictionary.h.

#define GID_LOOKUP_MISS_L2   ((u64)~0)

Definition at line 25 of file gid_dictionary.h.

#define IP4_LOOKUP_DEFAULT_HASH_MEMORY_SIZE   (32<<20)

Definition at line 29 of file gid_dictionary.h.

#define IP4_LOOKUP_DEFAULT_HASH_NUM_BUCKETS   (64 * 1024)

Definition at line 28 of file gid_dictionary.h.

#define IP6_LOOKUP_DEFAULT_HASH_MEMORY_SIZE   (32<<20)

Definition at line 33 of file gid_dictionary.h.

#define IP6_LOOKUP_DEFAULT_HASH_NUM_BUCKETS   (64 * 1024)

Definition at line 32 of file gid_dictionary.h.

#define MAC_LOOKUP_DEFAULT_HASH_MEMORY_SIZE   (32<<20)

Definition at line 37 of file gid_dictionary.h.

#define MAC_LOOKUP_DEFAULT_HASH_NUM_BUCKETS   (64 * 1024)

Definition at line 36 of file gid_dictionary.h.

#define NSH_LOOKUP_DEFAULT_HASH_MEMORY_SIZE   (32<<20)

Definition at line 45 of file gid_dictionary.h.

#define NSH_LOOKUP_DEFAULT_HASH_NUM_BUCKETS   (64 * 1024)

Definition at line 44 of file gid_dictionary.h.

Typedef Documentation

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

Definition at line 47 of file gid_dictionary.h.

Function Documentation

void gid_dict_foreach_l2_arp_ndp_entry ( gid_dictionary_t db,
void(*)(BVT(clib_bihash_kv)*kvp, void *arg)  cb,
void *  ht 
)

Definition at line 142 of file gid_dictionary.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 124 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,
u64  value,
u8  is_add 
)

Definition at line 956 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 1040 of file gid_dictionary.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u64 gid_dictionary_lookup ( gid_dictionary_t db,
gid_address_t key 
)

Definition at line 397 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 441 of file gid_dictionary.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: