5d7bfb7337
To avoid a race condition while creating a new hash object, the
list has to be locked before the lookup, and released only once the
new object is added in the list.
As the lock is held by the rte_ring_create(), move its creation at the
beginning of the function and only take the lock after the ring is
created to avoid a deadlock.
Fixes:
|
||
---|---|---|
.. | ||
Makefile | ||
rte_cmp_arm64.h | ||
rte_cmp_x86.h | ||
rte_crc_arm64.h | ||
rte_cuckoo_hash.c | ||
rte_fbk_hash.c | ||
rte_fbk_hash.h | ||
rte_hash_crc.h | ||
rte_hash_version.map | ||
rte_hash.h | ||
rte_jhash.h | ||
rte_thash.h |