numam-dpdk/lib/librte_hash
Pablo de Lara 48a3991196 hash: replace with cuckoo hash implementation
This patch replaces the existing hash library with another approach,
using the Cuckoo Hash method to resolve collisions (open addressing),
which pushes items from a full bucket when a new entry tries
to be added in it, storing the evicted entry in an alternative location,
using a secondary hash function.

This gives the user the ability to store more entries when a bucket
is full, in comparison with the previous implementation.
Therefore, the unit test has been updated, as some scenarios have changed
(such as the previous removed restriction).

Also note that the API has not been changed, although new fields
have been added in the rte_hash structure (structure is internal now).
The main change when creating a new table is that the number of entries
per bucket is fixed now, so its parameter is ignored now
(still there to maintain the same parameters structure).
The hash unit test has been updated to reflect these changes.

As a last note, the maximum burst size in lookup_burst function
hash been increased to 64, to improve performance.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2015-07-12 23:46:11 +02:00
..
Makefile hash: replace with cuckoo hash implementation 2015-07-12 23:46:11 +02:00
rte_cuckoo_hash.c hash: replace with cuckoo hash implementation 2015-07-12 23:46:11 +02:00
rte_fbk_hash.c lib: fix whitespace 2015-06-12 11:10:10 +02:00
rte_fbk_hash.h tailq: move to dynamic tailq 2015-03-10 12:06:08 +01:00
rte_hash_crc.h hash: fix strict-aliasing for CRC 2015-03-26 22:27:51 +01:00
rte_hash_version.map hash: add missing symbol in version map 2015-07-01 23:18:41 +02:00
rte_hash.h hash: replace with cuckoo hash implementation 2015-07-12 23:46:11 +02:00
rte_jhash.h hash: fix build on non-x86 arch 2015-07-09 03:20:11 +02:00
rte_thash.h hash: add toeplitz algorithm used by RSS 2015-07-01 23:23:03 +02:00