ethdev: remove Rx interrupt switch
[dpdk.git] / lib / librte_hash / rte_cuckoo_hash.c
index dec18ce..4da859a 100644 (file)
@@ -105,8 +105,8 @@ struct rte_hash {
        uint32_t num_buckets;           /**< Number of buckets in table. */
        uint32_t key_len;               /**< Length of hash key. */
        rte_hash_function hash_func;    /**< Function used to calculate hash. */
-       rte_hash_cmp_eq_t rte_hash_cmp_eq; /**< Function used to compare keys. */
        uint32_t hash_func_init_val;    /**< Init value used by hash_func. */
+       rte_hash_cmp_eq_t rte_hash_cmp_eq; /**< Function used to compare keys. */
        uint32_t bucket_bitmask;        /**< Bitmask for getting bucket index
                                                from hash signature. */
        uint32_t key_entry_size;         /**< Size of each key entry. */
@@ -509,7 +509,7 @@ __rte_hash_add_key_with_hash(const struct rte_hash *h, const void *key,
                        k = (struct rte_hash_key *) ((char *)keys +
                                        prim_bkt->key_idx[i] * h->key_entry_size);
                        if (h->rte_hash_cmp_eq(key, k->key, h->key_len) == 0) {
-                               rte_ring_sp_enqueue(h->free_slots, &slot_id);
+                               rte_ring_sp_enqueue(h->free_slots, slot_id);
                                /* Update data */
                                k->pdata = data;
                                /*
@@ -528,7 +528,7 @@ __rte_hash_add_key_with_hash(const struct rte_hash *h, const void *key,
                        k = (struct rte_hash_key *) ((char *)keys +
                                        sec_bkt->key_idx[i] * h->key_entry_size);
                        if (h->rte_hash_cmp_eq(key, k->key, h->key_len) == 0) {
-                               rte_ring_sp_enqueue(h->free_slots, &slot_id);
+                               rte_ring_sp_enqueue(h->free_slots, slot_id);
                                /* Update data */
                                k->pdata = data;
                                /*