test/hash: fix bucket size in perf test
authorYipeng Wang <yipeng1.wang@intel.com>
Fri, 28 Sep 2018 14:11:05 +0000 (07:11 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 25 Oct 2018 21:58:12 +0000 (23:58 +0200)
commitb772a15eb84ce616114880a20ad6ad91bb8970fc
treed98deb241bdce96d310a66aaed2e3a120158d052
parent636e5af0380e461895e666d41039c1acf877a08d
test/hash: fix bucket size in perf test

The bucket size was changed from 4 to 8 but the corresponding
perf test was not changed accordingly.

In the test, the bucket size and number of buckets are used
to map to the underneath rte_hash structure. They are used
to test performance of two conditions: keys in primary
buckets only and keys in both primary and secondary buckets.

Although there is no functional issue with bucket size set
to 4, it mismatches the underneath rte_hash structure,
which may affect code readability and future extension.

Fixes: 58017c98ed53 ("hash: add vectorized comparison")
Cc: stable@dpdk.org
Signed-off-by: Yipeng Wang <yipeng1.wang@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
test/test/test_hash_perf.c