From patchwork Fri Jun 28 04:52:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 168003 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3216077ilk; Thu, 27 Jun 2019 21:53:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwz/orBB5arV9KdUD8eAwEdLK/3kpcrvNxpbwNPJaOhtdcJqtSNf2oGbP9pT6v0Q930kvfE X-Received: by 2002:adf:fc01:: with SMTP id i1mr5736934wrr.314.1561697594337; Thu, 27 Jun 2019 21:53:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561697594; cv=none; d=google.com; s=arc-20160816; b=smlUcgTHNzdfwQDCe9G+jtoxTBgwipsLFlBlSbCemG5NeEcrd4VQQipjS8oFXFVwOH vesHRSTXQRg285DV10gGT4UWySKgFNqv7/h4Y01wYkNaGbA/TrtwhHo7D3l9tUkwNVB3 /h41/XKLh4Ap2OlmgbY78gSRLmtPiCV60q6+wF/r/x4sR6tNFeNoFCch7ImgzPlyTiue 3sgqiSKtCdMLwvYwwYnkqPntkFQgwWli28L2QPC3JYujz/67Adq9Sm2hat00JZL+zjzT l7nkJqIVp3TS4YaEjUKfL9s6A7LBZxyitJtfADd6Y3kLgVDpcaz3/BbvCkkdqUSIgqoY 6MKw== 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=XhFpHcF0cPOrrovOc/Ri2i3iIrC9vVebKSyYQ8GLpOQ=; b=SX8glF3E8Qj+drTSDvxgO7J/J4mLbRdq9GHhw7nak0hWXlHjQILzPGw6rxp/yQliPL k5fXMjOYo4JVQMwGt2YzMoZtlfuIvQT1bAk3djD9HdH73sgIbBDNFQxHaUPXlUpJdfLu p9KrhpLjN0+HqzKdr3m9yIrAzsyOidg4fs0+gJY6M5/E/bEJKhbHiA3zRUPdP8+k+p79 nIiNmIEHceRqQWg26SjfeEDakjMqZbc2iZRczcjK8CaFsIRJeiHFovJXuR4GFECs90mM zNgMj7nK2iQPX/XwLsSC1CZF3bmemrn6o+Nc0zIGb7qiYak4uuUxgJRsD8MT/e4ZR6WC GeVw== 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 j1si875381wrq.260.2019.06.27.21.53.14; Thu, 27 Jun 2019 21:53:14 -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 CE8115B3A; Fri, 28 Jun 2019 06:53:10 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 7D8654F94; Fri, 28 Jun 2019 06:53:09 +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 94D9F344; Thu, 27 Jun 2019 21:53:08 -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 887443F706; Thu, 27 Jun 2019 21:53:08 -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: Thu, 27 Jun 2019 23:52:52 -0500 Message-Id: <20190628045254.17614-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 v2 1/3] 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 --- 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 From patchwork Fri Jun 28 04:52:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 168004 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3216165ilk; Thu, 27 Jun 2019 21:53:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyzGKSOWX5RtKlodpiFRIuTyR3+Hlz52AbEVcAGhUxEAFo6UK9/lr29UdM6XcAVGzDpXCB X-Received: by 2002:a1c:6156:: with SMTP id v83mr5849063wmb.81.1561697601285; Thu, 27 Jun 2019 21:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561697601; cv=none; d=google.com; s=arc-20160816; b=0qkCwSCDcaQmwFGJXRQpWyZVnZsDjq/ywiwMXztDAnuzckXk5fOsPcFxOCnMeW/ftk vGAHIw8PCO7xRPcsgc0rHo+TNFqDbpmpBWiuPb6HP3Cj8rC9DkTj/qYa275ZCtWZp8bg 1DBcNAyXdLbFIN4T/kKw9KSncypp7+86SSo/8HYKsx9Vg0pOBHF/57YYr0mfva9yfltC Y3yYw4JF+H2lVlFbrb4tcZeDpyQrvNGwXUko62P94eHP339NiErGbFt5qqSNEM3sjWEk ij6JYV6pFLbCPqHY5BmRX1PM9AsaZdeiDU91eI2SZmX5aPoXDfrmFLt3bYt7yCTanSh9 HfgA== 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=J4ppOM9CVFBdnlTmGaeKt7jqulW2xi1jnqi35+nUG3o=; b=N+ro2FXG+52lkEDQKAZoNNfBgsi1LRfyqeDtqJGeIitdzI+zRAq2dhjpzguD4116nP FlpKKvhpKsxPaYJaetnyLCbyuDx3gOPhM1PIDQnC0ZXO5LTkqBjKxgVm6y0z2ctDCLWV MALJb/cJ7+9LV95lXBGghPX6hCD0h7BMBUgZ+wLxZV++Of4VEN7t1/o3d/qZMHsS5lIb GIByEDhv7ZqGyB9IjtIDsgql6FcBh8p0rX0UUWfKFU/9wV+d5vmu0G3W5UOlHQ+gyBYa /p0Co++FmGXK2kYHfoyQJt6l+MxjW4Hj/IvmgRTnbAKlJHIUP1oU7eU9ujSl9CoTzQLF sSMA== 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 r2si840801wrs.309.2019.06.27.21.53.21; Thu, 27 Jun 2019 21:53:21 -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 4552D5B34; Fri, 28 Jun 2019 06:53:15 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 124445B3E; Fri, 28 Jun 2019 06:53:10 +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 6F7B4C0A; Thu, 27 Jun 2019 21:53:10 -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 5A20C3F706; Thu, 27 Jun 2019 21:53:10 -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: Thu, 27 Jun 2019 23:52:53 -0500 Message-Id: <20190628045254.17614-2-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190628045254.17614-1-honnappa.nagarahalli@arm.com> References: <20190627032420.4730-1-honnappa.nagarahalli@arm.com> <20190628045254.17614-1-honnappa.nagarahalli@arm.com> Subject: [dpdk-dev] [PATCH v2 2/3] test/hash: init hash parameters in the correct function 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" Each test case initializes its hash parameters in the test case function. To be consistent, generate keys function should initialize hash parameters similarly. Fixes: c7eb0972e74b ("test/hash: add lock-free r/w concurrency") Cc: stable@dpdk.org Signed-off-by: Honnappa Nagarahalli Reviewed-by: Dharmik Thakkar --- app/test/test_hash_readwrite_lf.c | 98 +++++++++++++++---------------- 1 file changed, 49 insertions(+), 49 deletions(-) -- 2.17.1 diff --git a/app/test/test_hash_readwrite_lf.c b/app/test/test_hash_readwrite_lf.c index e9aca6ff4..12522e265 100644 --- a/app/test/test_hash_readwrite_lf.c +++ b/app/test/test_hash_readwrite_lf.c @@ -141,6 +141,52 @@ get_enabled_cores_list(void) return 0; } +static int +init_params(int rwc_lf, int use_jhash, int htm, int ext_bkt) +{ + struct rte_hash *handle; + + struct rte_hash_parameters hash_params = { + .entries = TOTAL_ENTRY, + .key_len = sizeof(uint32_t), + .hash_func_init_val = 0, + .socket_id = rte_socket_id(), + }; + + if (use_jhash) + hash_params.hash_func = rte_jhash; + else + hash_params.hash_func = rte_hash_crc; + + if (rwc_lf) + hash_params.extra_flag = + RTE_HASH_EXTRA_FLAGS_RW_CONCURRENCY_LF | + RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD; + else if (htm) + hash_params.extra_flag = + RTE_HASH_EXTRA_FLAGS_TRANS_MEM_SUPPORT | + RTE_HASH_EXTRA_FLAGS_RW_CONCURRENCY | + RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD; + else + hash_params.extra_flag = + RTE_HASH_EXTRA_FLAGS_RW_CONCURRENCY | + RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD; + + if (ext_bkt) + hash_params.extra_flag |= RTE_HASH_EXTRA_FLAGS_EXT_TABLE; + + hash_params.name = "tests"; + + handle = rte_hash_create(&hash_params); + if (handle == NULL) { + printf("hash creation failed"); + return -1; + } + + tbl_rwc_test_param.h = handle; + return 0; +} + static inline int check_bucket(uint32_t bkt_idx, uint32_t key) { @@ -215,6 +261,9 @@ generate_keys(void) uint32_t count_keys_extbkt = 0; uint32_t i; + if (init_params(0, 0, 0, 0) != 0) + return -1; + /* * keys will consist of a) keys whose addition to the hash table * will result in shifting of the existing keys to their alternate @@ -504,52 +553,6 @@ generate_keys(void) return -1; } -static int -init_params(int rwc_lf, int use_jhash, int htm, int ext_bkt) -{ - struct rte_hash *handle; - - struct rte_hash_parameters hash_params = { - .entries = TOTAL_ENTRY, - .key_len = sizeof(uint32_t), - .hash_func_init_val = 0, - .socket_id = rte_socket_id(), - }; - - if (use_jhash) - hash_params.hash_func = rte_jhash; - else - hash_params.hash_func = rte_hash_crc; - - if (rwc_lf) - hash_params.extra_flag = - RTE_HASH_EXTRA_FLAGS_RW_CONCURRENCY_LF | - RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD; - else if (htm) - hash_params.extra_flag = - RTE_HASH_EXTRA_FLAGS_TRANS_MEM_SUPPORT | - RTE_HASH_EXTRA_FLAGS_RW_CONCURRENCY | - RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD; - else - hash_params.extra_flag = - RTE_HASH_EXTRA_FLAGS_RW_CONCURRENCY | - RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD; - - if (ext_bkt) - hash_params.extra_flag |= RTE_HASH_EXTRA_FLAGS_EXT_TABLE; - - hash_params.name = "tests"; - - handle = rte_hash_create(&hash_params); - if (handle == NULL) { - printf("hash creation failed"); - return -1; - } - - tbl_rwc_test_param.h = handle; - return 0; -} - static int test_rwc_reader(__attribute__((unused)) void *arg) { @@ -1254,7 +1257,6 @@ test_hash_readwrite_lf_main(void) */ int rwc_lf = 0; int htm; - int use_jhash = 0; int ext_bkt = 0; if (rte_lcore_count() == 1) { printf("More than one lcore is required " @@ -1272,8 +1274,6 @@ test_hash_readwrite_lf_main(void) else htm = 0; - if (init_params(rwc_lf, use_jhash, htm, ext_bkt) != 0) - return -1; if (generate_keys() != 0) return -1; if (get_enabled_cores_list() != 0) From patchwork Fri Jun 28 04:52:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 168005 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3216255ilk; Thu, 27 Jun 2019 21:53:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyi+8pW18q26raxTwmdEi9CeQCjJC3cC0r+QJX6he5GwrfNVh2UhNokmnUAsc9SqcdpfzDp X-Received: by 2002:a1c:7408:: with SMTP id p8mr5266209wmc.161.1561697609102; Thu, 27 Jun 2019 21:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561697609; cv=none; d=google.com; s=arc-20160816; b=nzKVKD26z1AiogGIhxSfX+lgI+wwD+inuRWDxA9IeyM78WMuLz+p4f0ucTl0Smda6t /IhWkXQvy8NBFIy4UAa2z8Tjo2PFgDZpeip/jS57R3fjsvF5+/hVJzi4PsFcH7GBR84N mjgfuXJFl6vyXHdflUjM6p3nfpBH69AgZvrBY7+ZqzJDRny9nQXvFhBfZ35SL3SPh3GR nTZsegAEVg65U2QWnxvU8uRJYCvkXUwfexbm78BH5MIKRl9odWKs/oG6szcRC+Z4KIRv yCdgonL/06rH1Gmp9ickLTAe4g41ItPJ0vpbBBpt+gm2ka9xW4jj4aKi0u34kIIvJ7j0 E4jw== 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=egZ72YpGp2MCXU3Rut/h1sFxG0vkHP0NhsX6RjMcvWA=; b=sBkeGmslar7dyUTYtfbj8JobP5gyrbC9waj++UHdt5qVA39A7sPtP7BsDhMywftqkl AUHxOtsRt59FmYQHpBxwou/Rsv1rAX3FsUWVTVwKFmFqK9N9xgYLGSmb+JGG2KeMQ6f6 5MabIAAJYed11nf0elSGfJmprqFKXKBCX2scUJEXm/BQeEbbMJgDQ3tJfmUXY9JOnjNV WAhmz9QimgJN2R6BLTCc1NQGSaE/SOKjNMyDq88sFyEqzORknWNSCehNXGxquItBJLJ0 WDJFUKF9z8uiNe0tfe3OI1PUQidFP9mD8XRl8sNI6Z1qYNvzzc0aHkzso9a8YOtCZXV9 Qy1A== 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 k16si912506wrd.208.2019.06.27.21.53.28; Thu, 27 Jun 2019 21:53:29 -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 7DBC21B951; Fri, 28 Jun 2019 06:53:18 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id D61E75B3E; Fri, 28 Jun 2019 06:53:11 +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 57FFCD6E; Thu, 27 Jun 2019 21:53:11 -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 4E7F13F706; Thu, 27 Jun 2019 21:53:11 -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: Thu, 27 Jun 2019 23:52:54 -0500 Message-Id: <20190628045254.17614-3-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190628045254.17614-1-honnappa.nagarahalli@arm.com> References: <20190627032420.4730-1-honnappa.nagarahalli@arm.com> <20190628045254.17614-1-honnappa.nagarahalli@arm.com> Subject: [dpdk-dev] [PATCH v2 3/3] test/hash: free allocated memory 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" Free allocated memory. Fixes: 3f9aab961ed3 ("test/hash: check lock-free extendable bucket") Cc: stable@dpdk.org Signed-off-by: Honnappa Nagarahalli Reviewed-by: Dharmik Thakkar --- app/test/test_hash_readwrite_lf.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/app/test/test_hash_readwrite_lf.c b/app/test/test_hash_readwrite_lf.c index 12522e265..9b054dec0 100644 --- a/app/test/test_hash_readwrite_lf.c +++ b/app/test/test_hash_readwrite_lf.c @@ -537,6 +537,7 @@ generate_keys(void) tbl_rwc_test_param.count_keys_ks_extbkt); rte_free(found); + rte_free(scanned_bkts); rte_hash_free(tbl_rwc_test_param.h); return 0; @@ -547,9 +548,11 @@ generate_keys(void) rte_free(keys_absent); rte_free(found); rte_free(tbl_rwc_test_param.keys_shift_path); + rte_free(keys_non_shift_path); rte_free(keys_ext_bkt); rte_free(keys_ks_extbkt); rte_free(scanned_bkts); + rte_hash_free(tbl_rwc_test_param.h); return -1; } @@ -653,6 +656,8 @@ test_rwc_reader(__attribute__((unused)) void *arg) cycles = rte_rdtsc_precise() - begin; rte_atomic64_add(&gread_cycles, cycles); rte_atomic64_add(&greads, read_cnt*loop_cnt); + + rte_free(pos); return 0; } @@ -1431,7 +1436,9 @@ test_hash_readwrite_lf_main(void) rte_free(tbl_rwc_test_param.keys_ks); rte_free(tbl_rwc_test_param.keys_absent); rte_free(tbl_rwc_test_param.keys_shift_path); - rte_free(scanned_bkts); + rte_free(tbl_rwc_test_param.keys_non_shift_path); + rte_free(tbl_rwc_test_param.keys_ext_bkt); + rte_free(tbl_rwc_test_param.keys_ks_extbkt); return 0; }