get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 102094,
    "url": "http://patches.dpdk.org/api/patches/102094/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211018193707.123559-2-hkalra@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<20211018193707.123559-2-hkalra@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211018193707.123559-2-hkalra@marvell.com",
    "date": "2021-10-18T19:37:01",
    "name": "[v3,1/7] malloc: introduce malloc is ready API",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "9be9678532a0c4c1882cf96107fac0fdc1333c4c",
    "submitter": {
        "id": 1182,
        "url": "http://patches.dpdk.org/api/people/1182/?format=api",
        "name": "Harman Kalra",
        "email": "hkalra@marvell.com"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20211018193707.123559-2-hkalra@marvell.com/mbox/",
    "series": [
        {
            "id": 19759,
            "url": "http://patches.dpdk.org/api/series/19759/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19759",
            "date": "2021-10-18T19:37:00",
            "name": "make rte_intr_handle internal",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/19759/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/102094/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/102094/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 BA805A0C47;\n\tMon, 18 Oct 2021 23:00:46 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8751340142;\n\tMon, 18 Oct 2021 23:00:46 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 7518440141\n for <dev@dpdk.org>; Mon, 18 Oct 2021 23:00:45 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id\n 19IIxYcW001386;\n Mon, 18 Oct 2021 14:00:42 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com with ESMTP id 3bsepf8ca1-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Mon, 18 Oct 2021 14:00:42 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Mon, 18 Oct 2021 14:00:40 -0700",
            "from maili.marvell.com (10.68.76.51) by dc5-exch02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Mon, 18 Oct 2021 14:00:41 -0700",
            "from localhost.localdomain (unknown [10.29.52.211])\n by maili.marvell.com (Postfix) with ESMTP id 99F3A402066;\n Mon, 18 Oct 2021 12:37:24 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-type; s=pfpt0220; bh=eFR22b65UBGNM3OPulA+WYmudhLiGKgICPJU4BU159I=;\n b=E4CFd594AEd6HG2b6QXgt2vcvo36lmKO+S4G7f0CJDbFMvsnxez3vOQkmiULtKklPMnG\n +PiZ3JdX7tnKczxriCAkomZzDkJqCE9zffegFiEGvOGoygd1mTuNLf1PdxydM3IOJ4/r\n 8EuhM9CblGumTbYrYZ+PilrDbPEfx4IHWq9RIx6nRe5WNv0aGjgEt7ENOdinqZZgfKlx\n m8NLCEk3bzXp7WLuFhMchA7eTr1/kQCw7LdJhC+Ou0PaXYcgmvvRYczM6wMy79LiE2hM\n rq84qoz05HCae9IJoDDQzEBfDTG3BbqG7VDmDCkoCNGawEJiKF9W2bEaUImY/hIFT0em mg==",
        "From": "Harman Kalra <hkalra@marvell.com>",
        "To": "<dev@dpdk.org>, Anatoly Burakov <anatoly.burakov@intel.com>",
        "CC": "<david.marchand@redhat.com>, <dmitry.kozliuk@gmail.com>, <mdr@ashroe.eu>,\n <thomas@monjalon.net>, Harman Kalra <hkalra@marvell.com>",
        "Date": "Tue, 19 Oct 2021 01:07:01 +0530",
        "Message-ID": "<20211018193707.123559-2-hkalra@marvell.com>",
        "X-Mailer": "git-send-email 2.18.0",
        "In-Reply-To": "<20211018193707.123559-1-hkalra@marvell.com>",
        "References": "<20210826145726.102081-1-hkalra@marvell.com>\n <20211018193707.123559-1-hkalra@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "48rCW2x4nsygfTYY2F0gdnCH89LhbUkL",
        "X-Proofpoint-ORIG-GUID": "48rCW2x4nsygfTYY2F0gdnCH89LhbUkL",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475\n definitions=2021-10-18_07,2021-10-18_01,2020-04-07_01",
        "Subject": "[dpdk-dev] [PATCH v3 1/7] malloc: introduce malloc is ready API",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Implementing a new API get the state if DPDK memory management\nAPIs are initialized.\nOne of the use case of this API is while allocating an interrupt\ninstance, if malloc APIs are ready memory for interrupt handles\nshould be allocated via rte_malloc_* APIs else glibc malloc APIs\nare used. Eg. Alarm subsystem is initialised before DPDK memory\ninfra setup and it allocates an interrupt handle.\n\nSigned-off-by: Harman Kalra <hkalra@marvell.com>\n---\n lib/eal/common/malloc_heap.c | 16 +++++++++++++++-\n lib/eal/common/malloc_heap.h |  3 +++\n 2 files changed, 18 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/eal/common/malloc_heap.c b/lib/eal/common/malloc_heap.c\nindex ee400f38ec..4d649e3e5c 100644\n--- a/lib/eal/common/malloc_heap.c\n+++ b/lib/eal/common/malloc_heap.c\n@@ -36,6 +36,8 @@\n #define CONST_MAX(a, b) (a > b ? a : b) /* RTE_MAX is not a constant */\n #define EXTERNAL_HEAP_MIN_SOCKET_ID (CONST_MAX((1 << 8), RTE_MAX_NUMA_NODES))\n \n+static bool malloc_ready;\n+\n static unsigned\n check_hugepage_sz(unsigned flags, uint64_t hugepage_sz)\n {\n@@ -1328,6 +1330,7 @@ rte_eal_malloc_heap_init(void)\n {\n \tstruct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config;\n \tunsigned int i;\n+\tint ret;\n \tconst struct internal_config *internal_conf =\n \t\teal_get_internal_configuration();\n \n@@ -1369,5 +1372,16 @@ rte_eal_malloc_heap_init(void)\n \t\treturn 0;\n \n \t/* add all IOVA-contiguous areas to the heap */\n-\treturn rte_memseg_contig_walk(malloc_add_seg, NULL);\n+\tret = rte_memseg_contig_walk(malloc_add_seg, NULL);\n+\n+\tif (!ret)\n+\t\tmalloc_ready = true;\n+\n+\treturn ret;\n+}\n+\n+bool\n+rte_malloc_is_ready(void)\n+{\n+\treturn malloc_ready == true;\n }\ndiff --git a/lib/eal/common/malloc_heap.h b/lib/eal/common/malloc_heap.h\nindex 3a6ec6ecf0..f55d408492 100644\n--- a/lib/eal/common/malloc_heap.h\n+++ b/lib/eal/common/malloc_heap.h\n@@ -96,4 +96,7 @@ malloc_socket_to_heap_id(unsigned int socket_id);\n int\n rte_eal_malloc_heap_init(void);\n \n+bool\n+rte_malloc_is_ready(void);\n+\n #endif /* MALLOC_HEAP_H_ */\n",
    "prefixes": [
        "v3",
        "1/7"
    ]
}