test/hash: fix r/w test with non-consecutive cores
authorYipeng Wang <yipeng1.wang@intel.com>
Fri, 28 Sep 2018 14:11:07 +0000 (07:11 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 25 Oct 2018 21:59:01 +0000 (23:59 +0200)
commitb2f1f3c02148af2a490802d271842f1c1e80df3d
tree8d7fde744f53705ed06b0bd0425797d794a4a5f1
parent0b75b8d404ed78e7a7c96e29daa69d096e1666ff
test/hash: fix r/w test with non-consecutive cores

the multi-reader and multi-writer rte_hash unit test does not
work correctly with non-consecutive core ids. This commit
fixes the issue.

Fixes: 0eb3726ebcf1 ("test/hash: add test for read/write concurrency")
Cc: stable@dpdk.org
Signed-off-by: Yipeng Wang <yipeng1.wang@intel.com>
Tested-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
test/test/test_hash_readwrite.c