Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/40921/?format=api
https://patches.dpdk.org/api/patches/40921/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1528455078-328182-1-git-send-email-yipeng1.wang@intel.com/", "project": { "id": 1, "url": "https://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<1528455078-328182-1-git-send-email-yipeng1.wang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1528455078-328182-1-git-send-email-yipeng1.wang@intel.com", "date": "2018-06-08T10:51:15", "name": "[dpdk-dev,v1,0/3] Add read-write concurrency to rte_hash library", "commit_ref": null, "pull_url": null, "state": null, "archived": false, "hash": null, "submitter": { "id": 754, "url": "https://patches.dpdk.org/api/people/754/?format=api", "name": "Wang, Yipeng1", "email": "yipeng1.wang@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1528455078-328182-1-git-send-email-yipeng1.wang@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/40921/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/40921/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 090131BB2C;\n\tFri, 8 Jun 2018 19:56:40 +0200 (CEST)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id 0B6581BB0C\n\tfor <dev@dpdk.org>; Fri, 8 Jun 2018 19:56:38 +0200 (CEST)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t08 Jun 2018 10:56:36 -0700", "from skx-yipeng.jf.intel.com ([10.54.81.175])\n\tby fmsmga002.fm.intel.com with ESMTP; 08 Jun 2018 10:56:36 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.49,490,1520924400\"; d=\"scan'208\";a=\"55270336\"", "From": "Yipeng Wang <yipeng1.wang@intel.com>", "To": "pablo.de.lara.guarch@intel.com", "Cc": "dev@dpdk.org, yipeng1.wang@intel.com, john.mcnamara@intel.com,\n\tbruce.richardson@intel.com, honnappa.nagarahalli@arm.com,\n\tvguvva@caviumnetworks.com, brijesh.s.singh@gmail.com", "Date": "Fri, 8 Jun 2018 03:51:15 -0700", "Message-Id": "<1528455078-328182-1-git-send-email-yipeng1.wang@intel.com>", "X-Mailer": "git-send-email 2.7.4", "Subject": "[dpdk-dev] [PATCH v1 0/3] Add read-write concurrency to rte_hash\n\tlibrary", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "This patch set adds the read-write concurrency support in rte_hash.\nA new flag value is added to indicate if read-write concurrency is needed\nduring creation time. Test cases are implemented to do functional and\nperformance tests.\n\nThe new concurrency model is based on rte_rwlock. When Intel TSX is\navailable and the users indicate to use it, the TM version of the\nrte_rwlock will be called. Both multi-writer and read-write concurrency\nare protected by the rte_rwlock instead of the x86 specific RTM\ninstructions, so the x86 specific header rte_cuckoo_hash_x86.h is removed\nand the code is infused into the main .c file.\n\nA new rte_hash_count API is proposed to count how many keys are inserted into\nthe hash table.\n\nYipeng Wang (3):\n hash: add read and write concurrency support\n test: add test case for read write concurrency\n hash: add new API function to query the key count\n\n lib/librte_hash/rte_cuckoo_hash.c | 658 +++++++++++++++++++++-------------\n lib/librte_hash/rte_cuckoo_hash.h | 16 +-\n lib/librte_hash/rte_cuckoo_hash_x86.h | 164 ---------\n lib/librte_hash/rte_hash.h | 14 +\n lib/librte_hash/rte_hash_version.map | 8 +\n test/test/Makefile | 1 +\n test/test/test_hash.c | 12 +\n test/test/test_hash_multiwriter.c | 9 +\n test/test/test_hash_perf.c | 36 +-\n test/test/test_hash_readwrite.c | 649 +++++++++++++++++++++++++++++++++\n 10 files changed, 1135 insertions(+), 432 deletions(-)\n delete mode 100644 lib/librte_hash/rte_cuckoo_hash_x86.h\n create mode 100644 test/test/test_hash_readwrite.c", "diff": null, "prefixes": [ "dpdk-dev", "v1", "0/3" ] }{ "id": 40921, "url": "