get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/38557/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 38557,
    "url": "https://patches.dpdk.org/api/patches/38557/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1524150216-3407-6-git-send-email-jianfeng.tan@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": "<1524150216-3407-6-git-send-email-jianfeng.tan@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1524150216-3407-6-git-send-email-jianfeng.tan@intel.com",
    "date": "2018-04-19T15:03:33",
    "name": "[dpdk-dev,RFC,5/8] eal/linux: use glibc malloc in interrupt handling",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "3d23cd191cd62d0ca4d016e98c7670451c3bd162",
    "submitter": {
        "id": 313,
        "url": "https://patches.dpdk.org/api/people/313/?format=api",
        "name": "Jianfeng Tan",
        "email": "jianfeng.tan@intel.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/1524150216-3407-6-git-send-email-jianfeng.tan@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/38557/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/38557/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 793A9D14C;\n\tThu, 19 Apr 2018 17:01:48 +0200 (CEST)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n\tby dpdk.org (Postfix) with ESMTP id 59DCC8D8D\n\tfor <dev@dpdk.org>; Thu, 19 Apr 2018 17:01:41 +0200 (CEST)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t19 Apr 2018 08:01:40 -0700",
            "from dpdk06.sh.intel.com ([10.67.110.196])\n\tby orsmga003.jf.intel.com with ESMTP; 19 Apr 2018 08:01:40 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.48,469,1517904000\"; d=\"scan'208\";a=\"44534148\"",
        "From": "Jianfeng Tan <jianfeng.tan@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net, anatoly.burakov@intel.com,\n\tJianfeng Tan <jianfeng.tan@intel.com>",
        "Date": "Thu, 19 Apr 2018 15:03:33 +0000",
        "Message-Id": "<1524150216-3407-6-git-send-email-jianfeng.tan@intel.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1524150216-3407-1-git-send-email-jianfeng.tan@intel.com>",
        "References": "<1524150216-3407-1-git-send-email-jianfeng.tan@intel.com>",
        "Subject": "[dpdk-dev] [RFC 5/8] eal/linux: use glibc malloc in interrupt\n\thandling",
        "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 will rely on interrupt thread to implement IPC; and IPC initialization\nis in very early stage, when memory subsystem is not initialized yet.\nSo we change to use glibc malloc/free.\n\nSigned-off-by: Jianfeng Tan <jianfeng.tan@intel.com>\n---\n lib/librte_eal/linuxapp/eal/eal_interrupts.c | 13 +++++--------\n 1 file changed, 5 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/linuxapp/eal/eal_interrupts.c\nindex 58e9328..5245372 100644\n--- a/lib/librte_eal/linuxapp/eal/eal_interrupts.c\n+++ b/lib/librte_eal/linuxapp/eal/eal_interrupts.c\n@@ -30,7 +30,6 @@\n #include <rte_branch_prediction.h>\n #include <rte_debug.h>\n #include <rte_log.h>\n-#include <rte_malloc.h>\n #include <rte_errno.h>\n #include <rte_spinlock.h>\n #include <rte_pause.h>\n@@ -405,8 +404,7 @@ rte_intr_callback_register(const struct rte_intr_handle *intr_handle,\n \t}\n \n \t/* allocate a new interrupt callback entity */\n-\tcallback = rte_zmalloc(\"interrupt callback list\",\n-\t\t\t\tsizeof(*callback), 0);\n+\tcallback = calloc(1, sizeof(*callback));\n \tif (callback == NULL) {\n \t\tRTE_LOG(ERR, EAL, \"Can not allocate memory\\n\");\n \t\treturn -ENOMEM;\n@@ -431,10 +429,9 @@ rte_intr_callback_register(const struct rte_intr_handle *intr_handle,\n \n \t/* no existing callbacks for this - add new source */\n \tif (src == NULL) {\n-\t\tif ((src = rte_zmalloc(\"interrupt source list\",\n-\t\t\t\tsizeof(*src), 0)) == NULL) {\n+\t\tif ((src = calloc(1, sizeof(*src))) == NULL) {\n \t\t\tRTE_LOG(ERR, EAL, \"Can not allocate memory\\n\");\n-\t\t\trte_free(callback);\n+\t\t\tfree(callback);\n \t\t\tret = -ENOMEM;\n \t\t} else {\n \t\t\tsrc->intr_handle = *intr_handle;\n@@ -501,7 +498,7 @@ rte_intr_callback_unregister(const struct rte_intr_handle *intr_handle,\n \t\t\tif (cb->cb_fn == cb_fn && (cb_arg == (void *)-1 ||\n \t\t\t\t\tcb->cb_arg == cb_arg)) {\n \t\t\t\tTAILQ_REMOVE(&src->callbacks, cb, next);\n-\t\t\t\trte_free(cb);\n+\t\t\t\tfree(cb);\n \t\t\t\tret++;\n \t\t\t}\n \t\t}\n@@ -509,7 +506,7 @@ rte_intr_callback_unregister(const struct rte_intr_handle *intr_handle,\n \t\t/* all callbacks for that source are removed. */\n \t\tif (TAILQ_EMPTY(&src->callbacks)) {\n \t\t\tTAILQ_REMOVE(&intr_sources, src, next);\n-\t\t\trte_free(src);\n+\t\t\tfree(src);\n \t\t}\n \t}\n \n",
    "prefixes": [
        "dpdk-dev",
        "RFC",
        "5/8"
    ]
}