Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/42751/?format=api
http://patches.dpdk.org/api/patches/42751/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1531242001-381104-2-git-send-email-yipeng1.wang@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": "<1531242001-381104-2-git-send-email-yipeng1.wang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1531242001-381104-2-git-send-email-yipeng1.wang@intel.com", "date": "2018-07-10T16:59:54", "name": "[v5,1/8] hash: fix multiwriter lock memory allocation", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "3f9f0c285562696133caf510fe1afcd8acea47f9", "submitter": { "id": 754, "url": "http://patches.dpdk.org/api/people/754/?format=api", "name": "Wang, Yipeng1", "email": "yipeng1.wang@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1531242001-381104-2-git-send-email-yipeng1.wang@intel.com/mbox/", "series": [ { "id": 506, "url": "http://patches.dpdk.org/api/series/506/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=506", "date": "2018-07-10T16:59:53", "name": "Add read-write concurrency to rte_hash library", "version": 5, "mbox": "http://patches.dpdk.org/series/506/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/42751/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/42751/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 6C2AD1B3EE;\n\tWed, 11 Jul 2018 02:07:21 +0200 (CEST)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id 574225F29\n\tfor <dev@dpdk.org>; Wed, 11 Jul 2018 02:07:16 +0200 (CEST)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t10 Jul 2018 17:07:13 -0700", "from skx-yipeng.jf.intel.com ([10.54.81.175])\n\tby orsmga002.jf.intel.com with ESMTP; 10 Jul 2018 17:07:12 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.51,336,1526367600\"; d=\"scan'208\";a=\"73792724\"", "From": "Yipeng Wang <yipeng1.wang@intel.com>", "To": "pablo.de.lara.guarch@intel.com", "Cc": "dev@dpdk.org, yipeng1.wang@intel.com, bruce.richardson@intel.com,\n\thonnappa.nagarahalli@arm.com, vguvva@caviumnetworks.com,\n\tbrijesh.s.singh@gmail.com", "Date": "Tue, 10 Jul 2018 09:59:54 -0700", "Message-Id": "<1531242001-381104-2-git-send-email-yipeng1.wang@intel.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1531242001-381104-1-git-send-email-yipeng1.wang@intel.com>", "References": "<1528455078-328182-1-git-send-email-yipeng1.wang@intel.com>\n\t<1531242001-381104-1-git-send-email-yipeng1.wang@intel.com>", "Subject": "[dpdk-dev] [PATCH v5 1/8] hash: fix multiwriter lock memory\n\tallocation", "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": "When malloc for multiwriter_lock, the align should be\nRTE_CACHE_LINE_SIZE rather than LCORE_CACHE_SIZE.\n\nAlso there should be check to verify the success of\nrte_malloc.\n\nFixes: be856325cba3 (\"hash: add scalable multi-writer insertion with Intel TSX\")\nCc: stable@dpdk.org\n\nSigned-off-by: Yipeng Wang <yipeng1.wang@intel.com>\nAcked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>\n---\n lib/librte_hash/rte_cuckoo_hash.c | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)", "diff": "diff --git a/lib/librte_hash/rte_cuckoo_hash.c b/lib/librte_hash/rte_cuckoo_hash.c\nindex a07543a..80dcf41 100644\n--- a/lib/librte_hash/rte_cuckoo_hash.c\n+++ b/lib/librte_hash/rte_cuckoo_hash.c\n@@ -281,7 +281,10 @@ rte_hash_create(const struct rte_hash_parameters *params)\n \t\t\th->add_key = ADD_KEY_MULTIWRITER;\n \t\t\th->multiwriter_lock = rte_malloc(NULL,\n \t\t\t\t\t\t\tsizeof(rte_spinlock_t),\n-\t\t\t\t\t\t\tLCORE_CACHE_SIZE);\n+\t\t\t\t\t\t\tRTE_CACHE_LINE_SIZE);\n+\t\t\tif (h->multiwriter_lock == NULL)\n+\t\t\t\tgoto err_unlock;\n+\n \t\t\trte_spinlock_init(h->multiwriter_lock);\n \t\t}\n \t} else\n", "prefixes": [ "v5", "1/8" ] }{ "id": 42751, "url": "