DPDK
18.08.1
|
#include <rte_cuckoo_hash.h>
Data Fields | |
char | name [RTE_HASH_NAMESIZE] |
uint32_t | entries |
uint32_t | num_buckets |
struct rte_ring * | free_slots |
struct lcore_cache * | local_free_slots |
uint32_t key_len | __rte_cache_aligned |
uint8_t | hw_trans_mem_support |
uint8_t | multi_writer_support |
uint8_t | readwrite_concur_support |
rte_hash_function | hash_func |
uint32_t | hash_func_init_val |
rte_hash_cmp_eq_t | rte_hash_custom_cmp_eq |
enum cmp_jump_table_case | cmp_jump_table_idx |
enum rte_hash_sig_compare_function | sig_cmp_fn |
uint32_t | bucket_bitmask |
uint32_t | key_entry_size |
void * | key_store |
struct rte_hash_bucket * | buckets |
rte_rwlock_t * | readwrite_lock |
A hash table structure.
Definition at line 148 of file rte_cuckoo_hash.h.
char name[RTE_HASH_NAMESIZE] |
Name of the hash.
Definition at line 149 of file rte_cuckoo_hash.h.
uint32_t entries |
Total table entries.
Definition at line 150 of file rte_cuckoo_hash.h.
uint32_t num_buckets |
Number of buckets in table.
Definition at line 151 of file rte_cuckoo_hash.h.
struct rte_ring* free_slots |
Ring that stores all indexes of the free slots in the key table
Definition at line 153 of file rte_cuckoo_hash.h.
struct lcore_cache* local_free_slots |
Local cache per lcore, storing some indexes of the free slots
Definition at line 156 of file rte_cuckoo_hash.h.
uint32_t key_len __rte_cache_aligned |
Length of hash key.
Definition at line 162 of file rte_cuckoo_hash.h.
uint8_t hw_trans_mem_support |
If hardware transactional memory is used.
Definition at line 164 of file rte_cuckoo_hash.h.
uint8_t multi_writer_support |
If multi-writer support is enabled.
Definition at line 166 of file rte_cuckoo_hash.h.
uint8_t readwrite_concur_support |
If read-write concurrency support is enabled
Definition at line 168 of file rte_cuckoo_hash.h.
rte_hash_function hash_func |
Function used to calculate hash.
Definition at line 169 of file rte_cuckoo_hash.h.
uint32_t hash_func_init_val |
Init value used by hash_func.
Definition at line 170 of file rte_cuckoo_hash.h.
rte_hash_cmp_eq_t rte_hash_custom_cmp_eq |
Custom function used to compare keys.
Definition at line 172 of file rte_cuckoo_hash.h.
enum cmp_jump_table_case cmp_jump_table_idx |
Indicates which compare function to use.
Definition at line 173 of file rte_cuckoo_hash.h.
enum rte_hash_sig_compare_function sig_cmp_fn |
Indicates which signature compare function to use.
Definition at line 175 of file rte_cuckoo_hash.h.
uint32_t bucket_bitmask |
Bitmask for getting bucket index from hash signature.
Definition at line 178 of file rte_cuckoo_hash.h.
uint32_t key_entry_size |
Size of each key entry.
Definition at line 179 of file rte_cuckoo_hash.h.
void* key_store |
Table storing all keys and data
Definition at line 181 of file rte_cuckoo_hash.h.
struct rte_hash_bucket* buckets |
Table with buckets storing all the hash values and key indexes to the key table.
Definition at line 182 of file rte_cuckoo_hash.h.
rte_rwlock_t* readwrite_lock |
Read-write lock thread-safety.
Definition at line 186 of file rte_cuckoo_hash.h.