Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/36993/?format=api
https://patches.dpdk.org/api/patches/36993/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/ab5f01a9de580d039941c5fd7f24bf5ee0ff6c5a.1522797505.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": "<ab5f01a9de580d039941c5fd7f24bf5ee0ff6c5a.1522797505.git.anatoly.burakov@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/ab5f01a9de580d039941c5fd7f24bf5ee0ff6c5a.1522797505.git.anatoly.burakov@intel.com", "date": "2018-04-03T23:21:18", "name": "[dpdk-dev,v3,06/68] eal: make malloc_elem_join_adjacent_free public", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "e704c8a1a28365d522809bb2783561e4405d5477", "submitter": { "id": 4, "url": "https://patches.dpdk.org/api/people/4/?format=api", "name": "Burakov, Anatoly", "email": "anatoly.burakov@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/ab5f01a9de580d039941c5fd7f24bf5ee0ff6c5a.1522797505.git.anatoly.burakov@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/36993/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/36993/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 C86C11B8AD;\n\tWed, 4 Apr 2018 01:22:44 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 117E21B890\n\tfor <dev@dpdk.org>; Wed, 4 Apr 2018 01:22:29 +0200 (CEST)", "from fmsmga004.fm.intel.com ([10.253.24.48])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t03 Apr 2018 16:22:26 -0700", "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby fmsmga004.fm.intel.com with ESMTP; 03 Apr 2018 16:22:22 -0700", "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\tw33NMMvW013056; Wed, 4 Apr 2018 00:22:22 +0100", "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id w33NMMMB014596;\n\tWed, 4 Apr 2018 00:22:22 +0100", "(from aburakov@localhost)\n\tby sivswdev01.ir.intel.com with LOCAL id w33NMMM8014591;\n\tWed, 4 Apr 2018 00:22:22 +0100" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.48,403,1517904000\"; d=\"scan'208\";a=\"43168503\"", "From": "Anatoly Burakov <anatoly.burakov@intel.com>", "To": "dev@dpdk.org", "Cc": "keith.wiles@intel.com, jianfeng.tan@intel.com, andras.kovacs@ericsson.com,\n\tlaszlo.vadkeri@ericsson.com, benjamin.walker@intel.com,\n\tbruce.richardson@intel.com, thomas@monjalon.net,\n\tkonstantin.ananyev@intel.com, kuralamudhan.ramakrishnan@intel.com,\n\tlouise.m.daly@intel.com, nelio.laranjeiro@6wind.com,\n\tyskoh@mellanox.com, pepperjo@japf.ch, jerin.jacob@caviumnetworks.com, \n\themant.agrawal@nxp.com, olivier.matz@6wind.com, shreyansh.jain@nxp.com,\n\tgowrishankar.m@linux.vnet.ibm.com", "Date": "Wed, 4 Apr 2018 00:21:18 +0100", "Message-Id": "<ab5f01a9de580d039941c5fd7f24bf5ee0ff6c5a.1522797505.git.anatoly.burakov@intel.com>", "X-Mailer": "git-send-email 1.7.0.7", "In-Reply-To": [ "<cover.1522797505.git.anatoly.burakov@intel.com>", "<cover.1522797505.git.anatoly.burakov@intel.com>" ], "References": [ "<cover.1522797505.git.anatoly.burakov@intel.com>", "<cover.1520428025.git.anatoly.burakov@intel.com>\n\t<cover.1522797505.git.anatoly.burakov@intel.com>" ], "Subject": "[dpdk-dev] [PATCH v3 06/68] eal: make\n\tmalloc_elem_join_adjacent_free public", "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 e02ed88..2291ee1 100644\n--- a/lib/librte_eal/common/malloc_elem.c\n+++ b/lib/librte_eal/common/malloc_elem.c\n@@ -325,8 +325,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 {\n \t/*\n \t * check if next element exists, is adjacent and is free, if so join\n@@ -388,7 +388,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 40e8eb5..99921d2 100644\n--- a/lib/librte_eal/common/malloc_elem.h\n+++ b/lib/librte_eal/common/malloc_elem.h\n@@ -141,6 +141,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", "v3", "06/68" ] }{ "id": 36993, "url": "