11#ifndef _RTE_CUCKOO_HASH_H_
12#define _RTE_CUCKOO_HASH_H_
25#define RTE_HASH_BUCKET_ENTRIES 8
28 "RTE_HASH_BUCKET_ENTRIES must be a power of 2");
30#define NULL_SIGNATURE 0
34#define KEY_ALIGNMENT 16
36#define LCORE_CACHE_SIZE 64
38#define RTE_HASH_BFS_QUEUE_MAX_LEN 1000
40#define RTE_XABORT_CUCKOO_PATH_INVALIDED 0x4
42#define RTE_HASH_TSX_MAX_RETRY 10
46 uint32_t objs[LCORE_CACHE_SIZE];
53 RTE_ATOMIC(
void *) pdata;
61 uint16_t sig_current[RTE_HASH_BUCKET_ENTRIES];
63 RTE_ATOMIC(uint32_t) key_idx[RTE_HASH_BUCKET_ENTRIES];
65 uint8_t flag[RTE_HASH_BUCKET_ENTRIES];
85 struct rte_rcu_qsbr_dq *
dq;
89 alignas(RTE_CACHE_LINE_SIZE) uint32_t key_len;
136 uint32_t *ext_bkt_to_free;
143 uint32_t cur_bkt_idx;
145 struct queue_node *prev;
150#define RTE_HASH_RCU_DQ_RECLAIM_MAX 16
#define RTE_IS_POWER_OF_2(n)
#define __rte_cache_aligned
uint32_t(* rte_hash_function)(const void *key, uint32_t key_len, uint32_t init_val)
#define RTE_HASH_NAMESIZE
int(* rte_hash_cmp_eq_t)(const void *key1, const void *key2, size_t key_len)
uint32_t hash_func_init_val
struct rte_hash_bucket * buckets_ext
uint8_t readwrite_concur_support
struct rte_rcu_qsbr_dq * dq
struct lcore_cache * local_free_slots
struct rte_ring * free_ext_bkts
uint8_t readwrite_concur_lf_support
uint8_t writer_takes_lock
struct rte_hash_rcu_config * hash_rcu_cfg
struct rte_hash_bucket * buckets
rte_hash_cmp_eq_t rte_hash_custom_cmp_eq
rte_hash_function hash_func
struct rte_ring * free_slots
unsigned int cmp_jump_table_idx
uint8_t ext_table_support
uint8_t hw_trans_mem_support
rte_rwlock_t * readwrite_lock