Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/47827/?format=api
http://patches.dpdk.org/api/patches/47827/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20181105173913.61225-3-bruce.richardson@intel.com/", "project": { "id": 1, "url": "http://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": "<20181105173913.61225-3-bruce.richardson@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20181105173913.61225-3-bruce.richardson@intel.com", "date": "2018-11-05T17:39:11", "name": "[2/4] hash: add local cache for TSX region", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "f4bcf79959ba9c782302db5c95be41cab6a189af", "submitter": { "id": 20, "url": "http://patches.dpdk.org/api/people/20/?format=api", "name": "Bruce Richardson", "email": "bruce.richardson@intel.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20181105173913.61225-3-bruce.richardson@intel.com/mbox/", "series": [ { "id": 2267, "url": "http://patches.dpdk.org/api/series/2267/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=2267", "date": "2018-11-05T17:39:09", "name": "fixes for rte_hash with TSX", "version": 1, "mbox": "http://patches.dpdk.org/series/2267/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/47827/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/47827/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 B21784F9B;\n\tMon, 5 Nov 2018 18:39:40 +0100 (CET)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id 59B924F9B\n\tfor <dev@dpdk.org>; Mon, 5 Nov 2018 18:39:38 +0100 (CET)", "from fmsmga006.fm.intel.com ([10.253.24.20])\n\tby fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t05 Nov 2018 09:39:37 -0800", "from silpixa00399126.ir.intel.com (HELO\n\tsilpixa00399126.ger.corp.intel.com) ([10.237.223.223])\n\tby fmsmga006.fm.intel.com with ESMTP; 05 Nov 2018 09:39:36 -0800" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.54,468,1534834800\"; d=\"scan'208\";a=\"278500792\"", "From": "Bruce Richardson <bruce.richardson@intel.com>", "To": "dev@dpdk.org", "Cc": "Yipeng Wang <yipeng1.wang@intel.com>", "Date": "Mon, 5 Nov 2018 17:39:11 +0000", "Message-Id": "<20181105173913.61225-3-bruce.richardson@intel.com>", "X-Mailer": "git-send-email 2.19.1", "In-Reply-To": "<20181105173913.61225-1-bruce.richardson@intel.com>", "References": "<20181105173913.61225-1-bruce.richardson@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 2/4] hash: add local cache for TSX region", "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://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Yipeng Wang <yipeng1.wang@intel.com>\n\nThis patch adds back the local cache when TSX support is turned on.\n\nWhen TSX is turned on, free key-data slot ring would be contended by\nvarious TSX regions. The purpose of this commit is to reduce possible\nmemory collisions during key insertion.\n\nSigned-off-by: Yipeng Wang <yipeng1.wang@intel.com>\n\n---\n lib/librte_hash/rte_cuckoo_hash.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)", "diff": "diff --git a/lib/librte_hash/rte_cuckoo_hash.c b/lib/librte_hash/rte_cuckoo_hash.c\nindex 76f5dc8..5d5f9f1 100644\n--- a/lib/librte_hash/rte_cuckoo_hash.c\n+++ b/lib/librte_hash/rte_cuckoo_hash.c\n@@ -180,8 +180,10 @@ struct rte_hash *\n \t}\n \n \t/* Check extra flags field to check extra options. */\n-\tif (params->extra_flag & RTE_HASH_EXTRA_FLAGS_TRANS_MEM_SUPPORT)\n+\tif (params->extra_flag & RTE_HASH_EXTRA_FLAGS_TRANS_MEM_SUPPORT) {\n+\t\tuse_local_cache = 1;\n \t\thw_trans_mem_support = 1;\n+\t}\n \n \tif (params->extra_flag & RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD) {\n \t\tuse_local_cache = 1;\n", "prefixes": [ "2/4" ] }{ "id": 47827, "url": "