numam-dpdk/lib/librte_hash
Mike Stolarchuk 61d04efc38 hash: fix lock release on add
When adding items to a hash table with multiple threads,
there is an spinlock used to prevent data corruption
(unless Transactional Memory is supported).

If there is a failure, the spinlock should be released,
but there were cases where that was not happening.

Fixes: be856325cb ("hash: add scalable multi-writer insertion with Intel TSX")
Cc: stable@dpdk.org

Signed-off-by: Mike Stolarchuk <mike.stolarchuk@bigswitch.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
2017-07-08 19:00:22 +02:00
..
Makefile hash: compile ARMv8 CRC32 support conditionally 2017-07-03 22:27:42 +02:00
rte_cmp_arm64.h update Cavium Inc copyright headers 2017-07-08 17:43:49 +02:00
rte_cmp_x86.h hash: remove checks for SSE 2017-07-04 14:35:41 +02:00
rte_crc_arm64.h update Cavium Inc copyright headers 2017-07-08 17:43:49 +02:00
rte_cuckoo_hash_x86.h hash: fix bucket size usage 2016-10-12 18:40:52 +02:00
rte_cuckoo_hash.c hash: fix lock release on add 2017-07-08 19:00:22 +02:00
rte_cuckoo_hash.h hash: remove checks for SSE 2017-07-04 14:35:41 +02:00
rte_fbk_hash.c hash: fix allocation of an existing object 2016-04-06 17:30:48 +02:00
rte_fbk_hash.h hash: remove checks for SSE 2017-07-04 14:35:41 +02:00
rte_hash_crc.h hash: remove checks for SSE 2017-07-04 14:35:41 +02:00
rte_hash_version.map hash: retrieve a key given its position 2016-07-10 14:56:45 +02:00
rte_hash.h hash: retrieve a key given its position 2016-07-10 14:56:45 +02:00
rte_jhash.h hash: fix header for C++ 2016-02-21 11:47:57 +01:00
rte_thash.h hash: remove checks for SSE 2017-07-04 14:35:41 +02:00