Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/46538/?format=api
https://patches.dpdk.org/api/patches/46538/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1539233972-49860-4-git-send-email-honnappa.nagarahalli@arm.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": "<1539233972-49860-4-git-send-email-honnappa.nagarahalli@arm.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1539233972-49860-4-git-send-email-honnappa.nagarahalli@arm.com", "date": "2018-10-11T04:59:28", "name": "[v2,3/7] hash: correct key store element alignment", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "5105816b74f8264757ed467d2164b6fccce5ba19", "submitter": { "id": 1045, "url": "https://patches.dpdk.org/api/people/1045/?format=api", "name": "Honnappa Nagarahalli", "email": "honnappa.nagarahalli@arm.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1539233972-49860-4-git-send-email-honnappa.nagarahalli@arm.com/mbox/", "series": [ { "id": 1824, "url": "https://patches.dpdk.org/api/series/1824/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=1824", "date": "2018-10-11T04:59:25", "name": "Address reader-writer concurrency in rte_hash", "version": 2, "mbox": "https://patches.dpdk.org/series/1824/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/46538/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/46538/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 9FFBC1B415;\n\tThu, 11 Oct 2018 06:59:50 +0200 (CEST)", "from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70])\n\tby dpdk.org (Postfix) with ESMTP id 257AD1B3AC\n\tfor <dev@dpdk.org>; Thu, 11 Oct 2018 06:59:46 +0200 (CEST)", "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249])\n\tby usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9061B7A9;\n\tWed, 10 Oct 2018 21:59:45 -0700 (PDT)", "from 2p2660v4-1.austin.arm.com (2p2660v4-1.austin.arm.com\n\t[10.118.12.190])\n\tby usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id\n\t34C803F5B3; Wed, 10 Oct 2018 21:59:45 -0700 (PDT)" ], "From": "Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>", "To": "bruce.richardson@intel.com,\n\tpablo.de.lara.guarch@intel.com", "Cc": "dev@dpdk.org, yipeng1.wang@intel.com, honnappa.nagarahalli@arm.com,\n\tDharmik.Thakkar@arm.com, nd@arm.com", "Date": "Wed, 10 Oct 2018 23:59:28 -0500", "Message-Id": "<1539233972-49860-4-git-send-email-honnappa.nagarahalli@arm.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1539233972-49860-1-git-send-email-honnappa.nagarahalli@arm.com>", "References": "<1539233972-49860-1-git-send-email-honnappa.nagarahalli@arm.com>", "Subject": "[dpdk-dev] [PATCH v2 3/7] hash: correct key store element alignment", "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": "Correct the key store array element alignment. This is required to\nmake 'pdata' in 'struct rte_hash_key' align on the correct boundary.\n\nSigned-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>\nReviewed-by: Gavin Hu <gavin.hu@arm.com>\nReviewed-by: Ola Liljedahl <ola.liljedahl@arm.com>\nReviewed-by: Steve Capper <steve.capper@arm.com>\n---\n lib/librte_hash/rte_cuckoo_hash.c | 4 +++-\n lib/librte_hash/rte_cuckoo_hash.h | 2 +-\n 2 files changed, 4 insertions(+), 2 deletions(-)", "diff": "diff --git a/lib/librte_hash/rte_cuckoo_hash.c b/lib/librte_hash/rte_cuckoo_hash.c\nindex 50d632e..f3e95f2 100644\n--- a/lib/librte_hash/rte_cuckoo_hash.c\n+++ b/lib/librte_hash/rte_cuckoo_hash.c\n@@ -196,7 +196,9 @@ rte_hash_create(const struct rte_hash_parameters *params)\n \t\tgoto err_unlock;\n \t}\n \n-\tconst uint32_t key_entry_size = sizeof(struct rte_hash_key) + params->key_len;\n+\tconst uint32_t key_entry_size =\n+\t\tRTE_ALIGN(sizeof(struct rte_hash_key) + params->key_len,\n+\t\t\t KEY_ALIGNMENT);\n \tconst uint64_t key_tbl_size = (uint64_t) key_entry_size * num_key_slots;\n \n \tk = rte_zmalloc_socket(NULL, key_tbl_size,\ndiff --git a/lib/librte_hash/rte_cuckoo_hash.h b/lib/librte_hash/rte_cuckoo_hash.h\nindex 8627c80..a44c6be 100644\n--- a/lib/librte_hash/rte_cuckoo_hash.h\n+++ b/lib/librte_hash/rte_cuckoo_hash.h\n@@ -125,7 +125,7 @@ struct rte_hash_key {\n \t};\n \t/* Variable key size */\n \tchar key[0];\n-} __attribute__((aligned(KEY_ALIGNMENT)));\n+};\n \n /* All different signature compare functions */\n enum rte_hash_sig_compare_function {\n", "prefixes": [ "v2", "3/7" ] }{ "id": 46538, "url": "