net/hinic/base: support two or more AEQS for chip
[dpdk.git] / lib / librte_hash / rte_cuckoo_hash.h
index fb19bb2..85be49d 100644 (file)
@@ -124,7 +124,7 @@ const rte_hash_cmp_eq_t cmp_jump_table[NUM_KEY_CMP_CASES] = {
 
 struct lcore_cache {
        unsigned len; /**< Cache len */
-       void *objs[LCORE_CACHE_SIZE]; /**< Cache objects */
+       uint32_t objs[LCORE_CACHE_SIZE]; /**< Cache objects */
 } __rte_cache_aligned;
 
 /* Structure that stores key-value pair */
@@ -168,6 +168,11 @@ struct rte_hash {
        struct lcore_cache *local_free_slots;
        /**< Local cache per lcore, storing some indexes of the free slots */
 
+       /* RCU config */
+       struct rte_hash_rcu_config *hash_rcu_cfg;
+       /**< HASH RCU QSBR configuration structure */
+       struct rte_rcu_qsbr_dq *dq;     /**< RCU QSBR defer queue. */
+
        /* Fields used in lookup */
 
        uint32_t key_len __rte_cache_aligned;
@@ -230,4 +235,7 @@ struct queue_node {
        int prev_slot;               /* Parent(slot) in search path */
 };
 
+/** @internal Default RCU defer queue entries to reclaim in one go. */
+#define RTE_HASH_RCU_DQ_RECLAIM_MAX    16
+
 #endif