16 #ifndef VNET_LISP_GPE_GID_DICTIONARY_H_ 17 #define VNET_LISP_GPE_GID_DICTIONARY_H_ 24 #define GID_LOOKUP_MISS ((u32)~0) 27 #define IP4_LOOKUP_DEFAULT_HASH_NUM_BUCKETS (64 * 1024) 28 #define IP4_LOOKUP_DEFAULT_HASH_MEMORY_SIZE (32<<20) 31 #define IP6_LOOKUP_DEFAULT_HASH_NUM_BUCKETS (64 * 1024) 32 #define IP6_LOOKUP_DEFAULT_HASH_MEMORY_SIZE (32<<20) 36 BVT(clib_bihash) ip4_lookup_table;
42 u32 ip4_prefix_len_refcount[33];
48 BVT(clib_bihash) ip6_lookup_table;
51 uword * ip6_non_empty_dst_address_length_bitmap;
52 u8 * ip6_prefix_lengths_in_search_order;
54 u64 ip6_prefix_len_refcount[129];
57 u32 ip6_lookup_table_nbuckets;
void gid_dictionary_init(gid_dictionary_t *db)
uword ip4_lookup_table_size
u32 gid_dictionary_lookup(gid_dictionary_t *db, gid_address_t *key)
u32 gid_dictionary_add_del(gid_dictionary_t *db, gid_address_t *key, u32 value, u8 is_add)
u8 * ip4_prefix_lengths_in_search_order
struct _gid_address_t gid_address_t
uword * ip4_non_empty_dst_address_length_bitmap
u32 ip4_lookup_table_nbuckets