test/hash: fix data reset on new run
Reset tbl_rwc_test_param to discard data from previous run
of the test.
Fixes: c7eb0972e7
("test/hash: add lock-free r/w concurrency")
Cc: stable@dpdk.org
Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Dharmik Thakkar <dharmik.thakkar@arm.com>
This commit is contained in:
parent
aeaeaf5f2d
commit
e60635c14c
@ -1262,6 +1262,9 @@ test_hash_readwrite_lf_main(void)
|
|||||||
|
|
||||||
setlocale(LC_NUMERIC, "");
|
setlocale(LC_NUMERIC, "");
|
||||||
|
|
||||||
|
/* Reset tbl_rwc_test_param to discard values from previous run */
|
||||||
|
memset(&tbl_rwc_test_param, 0, sizeof(tbl_rwc_test_param));
|
||||||
|
|
||||||
if (rte_tm_supported())
|
if (rte_tm_supported())
|
||||||
htm = 1;
|
htm = 1;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user