test/hash: check lock-free extendable bucket
authorDharmik Thakkar <dharmik.thakkar@arm.com>
Tue, 2 Apr 2019 19:44:55 +0000 (19:44 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 3 Apr 2019 18:55:02 +0000 (20:55 +0200)
commit3f9aab961ed3841aec27bf9ee0571298546c34db
treefd48ef2c66eae8a225c9e355f5b1fa69b45f9c50
parentf401363d984a6958166d3e1648c4f282102d2218
test/hash: check lock-free extendable bucket

Add unit test to check for hash lookup and bulk-lookup perf for
extendable bucket feature.
It is tested with both lock-free enabled and lock-free disabled case.

Test includes:

- hash lookup on keys in ext bkt
- hash delete causing key-shifts of keys from ext bkt to secondary bkt

Suggested-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Signed-off-by: Dharmik Thakkar <dharmik.thakkar@arm.com>
Acked-by: Yipeng Wang <yipeng1.wang@intel.com>
app/test/test_hash_readwrite_lf.c