test/hash: rectify slave id to point to valid cores
authorDharmik Thakkar <dharmik.thakkar@arm.com>
Sat, 15 Jun 2019 06:42:20 +0000 (08:42 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 27 Jun 2019 20:31:24 +0000 (22:31 +0200)
commit477cafea6532881477da3676579ec3ca236ce47f
tree5eb1d70368a385315d7f9a0e4bd66f437c5c8873
parentbf7a24b997dc1f7516f38a38a8ce3c364d64aff4
test/hash: rectify slave id to point to valid cores

This patch rectifies slave_id to point to valid core indexes rather than
core ranks in read-write lock-free concurrency test.

It also replaces a 'for' loop with RTE_LCORE_FOREACH API.

Fixes: c7eb0972e74b ("test/hash: add lock-free r/w concurrency")
Cc: stable@dpdk.org
Signed-off-by: Dharmik Thakkar <dharmik.thakkar@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Yipeng Wang <yipeng1.wang@intel.com>
app/test/test_hash_readwrite_lf.c