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) 35 #define MAC_LOOKUP_DEFAULT_HASH_NUM_BUCKETS (64 * 1024) 36 #define MAC_LOOKUP_DEFAULT_HASH_MEMORY_SIZE (32<<20) 40 BVT (clib_bihash) ip4_lookup_table;
46 u32 ip4_prefix_len_refcount[33];
52 BVT (clib_bihash) ip6_lookup_table;
55 uword *ip6_non_empty_dst_address_length_bitmap;
56 u8 *ip6_prefix_lengths_in_search_order;
58 u64 ip6_prefix_len_refcount[129];
61 u32 ip6_lookup_table_nbuckets;
64 BVT (clib_bihash) mac_lookup_table;
67 u32 mac_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