Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/32457/?format=api
https://patches.dpdk.org/api/patches/32457/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/65cbd0ba86f5ab39b7f3567fe866a68ea04d7f71.1513681966.git.anatoly.burakov@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": "<65cbd0ba86f5ab39b7f3567fe866a68ea04d7f71.1513681966.git.anatoly.burakov@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/65cbd0ba86f5ab39b7f3567fe866a68ea04d7f71.1513681966.git.anatoly.burakov@intel.com", "date": "2017-12-19T11:14:34", "name": "[dpdk-dev,RFC,v2,07/23] eal: make malloc_elem_join_adjacent_free public", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "bcec7ec56cb2e0097df3bec000312894e30a457e", "submitter": { "id": 4, "url": "https://patches.dpdk.org/api/people/4/?format=api", "name": "Anatoly Burakov", "email": "anatoly.burakov@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/65cbd0ba86f5ab39b7f3567fe866a68ea04d7f71.1513681966.git.anatoly.burakov@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/32457/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/32457/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 CAA231B1A3;\n\tTue, 19 Dec 2017 12:15:09 +0100 (CET)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id AB87A1B020\n\tfor <dev@dpdk.org>; Tue, 19 Dec 2017 12:14:55 +0100 (CET)", "from orsmga005.jf.intel.com ([10.7.209.41])\n\tby fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t19 Dec 2017 03:14:54 -0800", "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby orsmga005.jf.intel.com with ESMTP; 19 Dec 2017 03:14:52 -0800", "from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com\n\t[10.237.217.45])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tvBJBEpWL003104; Tue, 19 Dec 2017 11:14:51 GMT", "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id vBJBEpVL010223;\n\tTue, 19 Dec 2017 11:14:51 GMT", "(from aburakov@localhost)\n\tby sivswdev01.ir.intel.com with LOCAL id vBJBEpit010218;\n\tTue, 19 Dec 2017 11:14:51 GMT" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.45,426,1508828400\"; d=\"scan'208\";a=\"185440362\"", "From": "Anatoly Burakov <anatoly.burakov@intel.com>", "To": "dev@dpdk.org", "Cc": "andras.kovacs@ericsson.com, laszlo.vadkeri@ericsson.com,\n\tkeith.wiles@intel.com, benjamin.walker@intel.com,\n\tbruce.richardson@intel.com, thomas@monjalon.net", "Date": "Tue, 19 Dec 2017 11:14:34 +0000", "Message-Id": "<65cbd0ba86f5ab39b7f3567fe866a68ea04d7f71.1513681966.git.anatoly.burakov@intel.com>", "X-Mailer": "git-send-email 1.7.0.7", "In-Reply-To": [ "<cover.1513681966.git.anatoly.burakov@intel.com>", "<cover.1513681966.git.anatoly.burakov@intel.com>" ], "References": [ "<cover.1513681966.git.anatoly.burakov@intel.com>", "<cover.1513681966.git.anatoly.burakov@intel.com>" ], "Subject": "[dpdk-dev] [RFC v2 07/23] eal: make malloc_elem_join_adjacent_free\n\tpublic", "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": "We need this function to join newly allocated segments with the heap.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n lib/librte_eal/common/malloc_elem.c | 6 +++---\n lib/librte_eal/common/malloc_elem.h | 3 +++\n 2 files changed, 6 insertions(+), 3 deletions(-)", "diff": "diff --git a/lib/librte_eal/common/malloc_elem.c b/lib/librte_eal/common/malloc_elem.c\nindex 7609a9b..782aaa7 100644\n--- a/lib/librte_eal/common/malloc_elem.c\n+++ b/lib/librte_eal/common/malloc_elem.c\n@@ -349,8 +349,8 @@ join_elem(struct malloc_elem *elem1, struct malloc_elem *elem2)\n \telem1->next = next;\n }\n \n-static struct malloc_elem *\n-elem_join_adjacent_free(struct malloc_elem *elem) {\n+struct malloc_elem *\n+malloc_elem_join_adjacent_free(struct malloc_elem *elem) {\n \t/*\n \t * check if next element exists, is adjacent and is free, if so join\n \t * with it, need to remove from free list.\n@@ -411,7 +411,7 @@ malloc_elem_free(struct malloc_elem *elem)\n \tptr = RTE_PTR_ADD(elem, sizeof(*elem));\n \tdata_len = elem->size - MALLOC_ELEM_OVERHEAD;\n \n-\telem = elem_join_adjacent_free(elem);\n+\telem = malloc_elem_join_adjacent_free(elem);\n \n \tmalloc_elem_free_list_insert(elem);\n \ndiff --git a/lib/librte_eal/common/malloc_elem.h b/lib/librte_eal/common/malloc_elem.h\nindex b3d39c0..cf27b59 100644\n--- a/lib/librte_eal/common/malloc_elem.h\n+++ b/lib/librte_eal/common/malloc_elem.h\n@@ -167,6 +167,9 @@ malloc_elem_alloc(struct malloc_elem *elem, size_t size,\n int\n malloc_elem_free(struct malloc_elem *elem);\n \n+struct malloc_elem *\n+malloc_elem_join_adjacent_free(struct malloc_elem *elem);\n+\n /*\n * attempt to resize a malloc_elem by expanding into any free space\n * immediately after it in memory.\n", "prefixes": [ "dpdk-dev", "RFC", "v2", "07/23" ] }{ "id": 32457, "url": "