]> git.droids-corp.org - dpdk.git/commit
hash: fix crash when adding already inserted keys
authorXavier Simonart <xavier.simonart@intel.com>
Tue, 28 Jul 2015 14:54:39 +0000 (16:54 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 28 Jul 2015 20:09:30 +0000 (22:09 +0200)
commit6133acbe8221c161c1a0e8d6e7ac1febb69d61a9
treeff5c87f32c6fd8dea63ea8e991a3aeeab2a62497
parent81b97563f362a96dce05bb21faf2518b769a0f51
hash: fix crash when adding already inserted keys

When adding with cuckoo hash a key which was already inserted
a new slot is dequeued and then enqueued back, but the enqueue
operation was not done properly.

Fixes: 48a399119619 ("hash: replace with cuckoo hash implementation")
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
lib/librte_hash/rte_cuckoo_hash.c