From patchwork Thu Nov 1 23:25:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 149995 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1392740ljp; Thu, 1 Nov 2018 16:25:39 -0700 (PDT) X-Google-Smtp-Source: AJdET5cE/sGcRPfbKpbzgQMG9QK/RhbPMyQaauNNwtz50696lpJo8Re1v0qLXDEF8pP6xnDqUTKx X-Received: by 2002:adf:df82:: with SMTP id z2-v6mr7782910wrl.118.1541114739685; Thu, 01 Nov 2018 16:25:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541114739; cv=none; d=google.com; s=arc-20160816; b=bQEgpydVquuln61uOhK8/QN5GZGGad2poiG6yLu9KvMDsK602HWvdsk7G3Dx/IqeTM ngpbi4c8tH/avb8kMo0s1CaMdtTZ6jCdU7f8OFb8O9HbYlyF3LMPrLUpWtS+sm04BpVJ u50RR0eDMXKKLd7p/XZUlmh5uqzNPBo94ykuCFUBVWT6XBX9AdsglNWivp+UCTVmx8OJ r6nZu2rAAzdzLMql1cNJR+mBRU14caC/4eitPKV7weApjAje22GDxbZgbrRmbt8D4k4M SFqs/FSwIkJGRPdGm6FxbyWX90LBHd7icAixEeP8Yas8DmVzBwJfd7Fze5zzGTXMxN7K rKIQ== 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=3KOzHcV8kqlKGp7IgtrlVCx5Al9+TIwGI9KpFX7zZuQ=; b=CxB/Y4WpKLSjDy+0SmQJLqWauHfk4eJsM88zqsF6l0hXErb7nmrHvhdQMufSAzxqJd sxGeN2KIsR2qj4+djdbcLncZjP1y9npBSyfs1s3SDypK2a2JotmZH6J6tdJQJadGfPbr Cw7HthD0xByL37uDTO9bWmO8yLSKqZ4cX7D/sHKoxaUFB6noxSJnTCAEzI/8Wiucf2mT BaWRxl6fwN0jEXK0KDjRNhw1yd06epDMADBQfb0MCVbiMoKTuiBH1yu+Fc4K+64kLxki hx+JpCJIWuyjw841pD7OLPzxigCRs0bDnCVn0mZc80iUQgZmQCYn6rsjcgtFfyE1fsBX s3gw== 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 e5-v6si13005362wmf.84.2018.11.01.16.25.39; Thu, 01 Nov 2018 16:25:39 -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 7623B1B395; Fri, 2 Nov 2018 00:25:38 +0100 (CET) Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id 50157683E for ; Fri, 2 Nov 2018 00:25:37 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2F50F1596; Thu, 1 Nov 2018 16:25:36 -0700 (PDT) Received: from qc2400f-1.austin.arm.com (qc2400f-1.austin.arm.com [10.118.12.122]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B28E93F718; Thu, 1 Nov 2018 16:25:35 -0700 (PDT) From: Honnappa Nagarahalli To: bruce.richardson@intel.com, pablo.de.lara.guarch@intel.com Cc: dev@dpdk.org, gavin.hu@arm.com, dharmik.thakkar@arm.com, nd@arm.com, yipeng1.wang@intel.com, sameh.gobriel@intel.com, Honnappa Nagarahalli Date: Thu, 1 Nov 2018 18:25:18 -0500 Message-Id: <20181101232522.702-1-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181101045454.632-2-honnappa.nagarahalli@arm.com> References: <20181101045454.632-2-honnappa.nagarahalli@arm.com> Subject: [dpdk-dev] [PATCH v2 0/4] hash: deprecate lock ellision and read/write concurreny flags 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" Various configuration flags in rte_hash library result in increase of number of test cases. Configuration flags for enabling transactional memory use and read/write concurrency are not required. These features should be supported by default. Please refer to [1] for more context. This patch marks these flags for deprecation in 19.02 release and cleans up the test cases. [1] http://mails.dpdk.org/archives/dev/2018-October/117268.html Honnappa Nagarahalli (4): hash: prepare for deprecation of flags hash: deprecate lock ellision and read/write concurreny flags test/hash: stop using lock ellision and read/write concurreny flags doc/hash: deprecate lock ellision and read/write concurreny flags doc/guides/rel_notes/deprecation.rst | 5 + lib/librte_hash/rte_cuckoo_hash.c | 321 ++++++++++++++++++++++++++- lib/librte_hash/rte_hash.h | 20 +- lib/librte_hash/rte_hash_version.map | 7 + test/test/test_hash_multiwriter.c | 20 +- test/test/test_hash_perf.c | 40 ++-- test/test/test_hash_readwrite.c | 84 ++----- test/test/test_hash_readwrite_lf.c | 189 ++++------------ 8 files changed, 432 insertions(+), 254 deletions(-) -- 2.17.1