From: Honnappa Nagarahalli Date: Tue, 2 Jul 2019 00:27:21 +0000 (-0500) Subject: test/hash: fix data reset on new run X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e60635c14c1589b9362b7e77c780ff608686d668;p=dpdk.git test/hash: fix data reset on new run Reset tbl_rwc_test_param to discard data from previous run of the test. Fixes: c7eb0972e74b ("test/hash: add lock-free r/w concurrency") Cc: stable@dpdk.org Signed-off-by: Honnappa Nagarahalli Reviewed-by: Dharmik Thakkar --- diff --git a/app/test/test_hash_readwrite_lf.c b/app/test/test_hash_readwrite_lf.c index 2664f5138c..7943e3d821 100644 --- a/app/test/test_hash_readwrite_lf.c +++ b/app/test/test_hash_readwrite_lf.c @@ -1262,6 +1262,9 @@ test_hash_readwrite_lf_main(void) 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()) htm = 1; else