test/hash: fix multiwriter with non consecutive cores
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Tue, 17 Jul 2018 13:31:50 +0000 (14:31 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 26 Jul 2018 19:49:28 +0000 (21:49 +0200)
commit0c992822901464d440534d337838fd08acf233d4
treea39168f649f40a9555f094be89dc1f9161c9c911
parent2bd55cb990343c7e48112690be7b69156197dcf1
test/hash: fix multiwriter with non consecutive cores

When non consecutive cores are passed into the test application,
the distribution of the keys that each thread needs to insert
is not correct, since it assumes that there are no cores skipped
between the master core and the worker core.

Fixes: be856325cba3 ("hash: add scalable multi-writer insertion with Intel TSX")
Cc: stable@dpdk.org
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
test/test/test_hash_multiwriter.c