From patchwork Tue Jul 2 00:27:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 168249 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3543172ilk; Mon, 1 Jul 2019 17:27:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdiBow4OjyC8xlLWintEkJIW7MMEkzAGHeE1hKZ1JIZPhCHFUe/UZQPT36eWqaGdlHsbBy X-Received: by 2002:a5d:56cb:: with SMTP id m11mr20621119wrw.255.1562027260788; Mon, 01 Jul 2019 17:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562027260; cv=none; d=google.com; s=arc-20160816; b=ty6la83/+oHJTegwkgNSqEJnBj+kAU84BU0zWOhvqbvQ36lEQvieYDUdVuBElqY1EV 3H3GUl+SMVStp2TEQRYFrqRBnRozRlKnikuiYjJutA+Q1OhujfhXvRV6V/UE7xqEBU0Y TMtqSdxUW7zGKcCJZmo3fJcVCJQ7xi/ESTWVsLNyXrpZUugW+N2WwaZ9+zNPg59TZe/Z VSggmzmGTgKBHXWR6LtoOhdJosR8Drwzk4gtzRjN4hnMSf6PxxhR1tF9nRU9gDaDX9/O UTUhatK0WNWdlj+TielmxS9YyJWjaFk6u6iWL7ecaH7tOPqgcr0nKndO6GT98EkpZZrM nyjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=9pHgZLleQQAwXUdiELzDBY9aOJEsVRUbqK/Y7pTMi88=; b=gWOleBihtqQw/kVeQqlpe6/UPuHPZw+wMGJe94Iw2KorKwmNYyg/OeVnmtQVP8aWxd lCdkK7zj0fLg5e+/ROhqRav5dpqkhv98DuSaqZZAmnwamxKnDtxd8U9HO/Mzht/oTr4T 7K5VHnV2MMQTTbh4RdxFFQ04maeVUyhKHzK9AKB8D8p3/E3sOIb4wRMXEkzvBEM03zuJ DzfuBMh5eV0jdIL55h+So0iVqOyaP/NDkTAPqdemkQF2ijk0VKrxZyqJ/+WtgE8s55FG wOg4jJtURuvViNefhfwKiB+cO8yVckJcCIATuuWrDNoVWOjrU59gIjNTMUdLZ0moj5FI M4kA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id r22si581733wmh.136.2019.07.01.17.27.40; Mon, 01 Jul 2019 17:27:40 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 07DF11B99B; Tue, 2 Jul 2019 02:27:39 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id BDC8B1B999; Tue, 2 Jul 2019 02:27:37 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 209D9344; Mon, 1 Jul 2019 17:27:37 -0700 (PDT) Received: from qc2400f-1.austin.arm.com (qc2400f-1.austin.arm.com [10.118.12.65]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 046433F718; Mon, 1 Jul 2019 17:27:37 -0700 (PDT) From: Honnappa Nagarahalli To: yipeng1.wang@intel.com, sameh.gobriel@intel.com, bruce.richardson@intel.com, pablo.de.lara.guarch@intel.com, david.marchand@redhat.com, honnappa.nagarahalli@arm.com Cc: dharmik.thakkar@arm.com, dev@dpdk.org, nd@arm.com, stable@dpdk.org Date: Mon, 1 Jul 2019 19:27:21 -0500 Message-Id: <20190702002724.41400-1-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190627032420.4730-1-honnappa.nagarahalli@arm.com> References: <20190627032420.4730-1-honnappa.nagarahalli@arm.com> Subject: [dpdk-dev] [PATCH v3 1/4] test/hash: reset global variable to discard old data X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- v3 - No changes V2 - No changes app/test/test_hash_readwrite_lf.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1 diff --git a/app/test/test_hash_readwrite_lf.c b/app/test/test_hash_readwrite_lf.c index 343a338b4..e9aca6ff4 100644 --- a/app/test/test_hash_readwrite_lf.c +++ b/app/test/test_hash_readwrite_lf.c @@ -1264,6 +1264,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