Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/127068/?format=api
http://patchwork.dpdk.org/api/patches/127068/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230519042923.314670-2-ruifeng.wang@arm.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20230519042923.314670-2-ruifeng.wang@arm.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230519042923.314670-2-ruifeng.wang@arm.com", "date": "2023-05-19T04:29:20", "name": "[1/4] eal: fix list index for 256 byte element", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "c0769cd494cc4de10637b6be24d8bbb616fe4a59", "submitter": { "id": 1198, "url": "http://patchwork.dpdk.org/api/people/1198/?format=api", "name": "Ruifeng Wang", "email": "ruifeng.wang@arm.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230519042923.314670-2-ruifeng.wang@arm.com/mbox/", "series": [ { "id": 28077, "url": "http://patchwork.dpdk.org/api/series/28077/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=28077", "date": "2023-05-19T04:29:19", "name": "Heap library and test case changes", "version": 1, "mbox": "http://patchwork.dpdk.org/series/28077/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/127068/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/127068/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id BEB0242B43;\n\tFri, 19 May 2023 06:30:14 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B17A642B8B;\n\tFri, 19 May 2023 06:30:14 +0200 (CEST)", "from foss.arm.com (foss.arm.com [217.140.110.172])\n by mails.dpdk.org (Postfix) with ESMTP id D269E406B5;\n Fri, 19 May 2023 06:30:13 +0200 (CEST)", "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14])\n by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2EA1A1FB;\n Thu, 18 May 2023 21:30:58 -0700 (PDT)", "from net-arm-n1amp-02.shanghai.arm.com\n (net-arm-n1amp-02.shanghai.arm.com [10.169.210.108])\n by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 73D433F762;\n Thu, 18 May 2023 21:30:10 -0700 (PDT)" ], "From": "Ruifeng Wang <ruifeng.wang@arm.com>", "To": "Anatoly Burakov <anatoly.burakov@intel.com>,\n Fengnan Chang <changfengnan@bytedance.com>,\n =?utf-8?q?Morten_Br=C3=B8rup?= <mb@smartsharesystems.com>", "Cc": "dev@dpdk.org, honnappa.nagarahalli@arm.com, feifei.wang2@arm.com,\n nd@arm.com, Ruifeng Wang <ruifeng.wang@arm.com>, stable@dpdk.org", "Subject": "[PATCH 1/4] eal: fix list index for 256 byte element", "Date": "Fri, 19 May 2023 12:29:20 +0800", "Message-Id": "<20230519042923.314670-2-ruifeng.wang@arm.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230519042923.314670-1-ruifeng.wang@arm.com>", "References": "<20230519042923.314670-1-ruifeng.wang@arm.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "Elements with 2^8B size should fall into index 1 of the list.\n\nFixes: f62f4a375ff4 (\"malloc: optimize 4K allocations\")\nCc: changfengnan@bytedance.com\nCc: stable@dpdk.org\n\nSigned-off-by: Ruifeng Wang <ruifeng.wang@arm.com>\n---\n lib/eal/common/malloc_elem.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/lib/eal/common/malloc_elem.c b/lib/eal/common/malloc_elem.c\nindex 35a2313d04..619c040aa3 100644\n--- a/lib/eal/common/malloc_elem.c\n+++ b/lib/eal/common/malloc_elem.c\n@@ -382,7 +382,7 @@ malloc_elem_free_list_index(size_t size)\n \tsize_t log2;\n \tsize_t index;\n \n-\tif (size <= (1UL << MALLOC_MINSIZE_LOG2))\n+\tif (size < (1UL << MALLOC_MINSIZE_LOG2))\n \t\treturn 0;\n \n \t/* Find next power of 2 > size. */\n", "prefixes": [ "1/4" ] }{ "id": 127068, "url": "