get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 116971,
    "url": "http://patches.dpdk.org/api/patches/116971/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220927114625.3053221-1-david.marchand@redhat.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": "<20220927114625.3053221-1-david.marchand@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220927114625.3053221-1-david.marchand@redhat.com",
    "date": "2022-09-27T11:46:25",
    "name": "malloc: remove unused function to set limit",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "c64cc6184285b51d77070c4ecabc26b5b4340e82",
    "submitter": {
        "id": 1173,
        "url": "http://patches.dpdk.org/api/people/1173/?format=api",
        "name": "David Marchand",
        "email": "david.marchand@redhat.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220927114625.3053221-1-david.marchand@redhat.com/mbox/",
    "series": [
        {
            "id": 24864,
            "url": "http://patches.dpdk.org/api/series/24864/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=24864",
            "date": "2022-09-27T11:46:25",
            "name": "malloc: remove unused function to set limit",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/24864/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/116971/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/116971/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 C1968A00C2;\n\tTue, 27 Sep 2022 13:46:56 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 61B9041133;\n\tTue, 27 Sep 2022 13:46:56 +0200 (CEST)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by mails.dpdk.org (Postfix) with ESMTP id D2F1F40694\n for <dev@dpdk.org>; Tue, 27 Sep 2022 13:46:54 +0200 (CEST)",
            "from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com\n [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n us-mta-185-ow1MFmUTPhmgQ5ZvY6iHkg-1; Tue, 27 Sep 2022 07:46:43 -0400",
            "from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com\n [10.11.54.5])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 554FC862FDC;\n Tue, 27 Sep 2022 11:46:43 +0000 (UTC)",
            "from localhost.localdomain (unknown [10.40.194.61])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 5DE4B4EA52;\n Tue, 27 Sep 2022 11:46:40 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1664279214;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=mGRc1tukQLeX/UN6693mpBXrirhPzIgznfUVuqzIYgM=;\n b=A+Lu41dYedR1qtFHSkkfAZH4gSprXTCytM7CNRQu6K9AZiM15lN2NJhcsWtFErfS9WRCjs\n 8ehm5dtABtICcENC5wXmgRA7GRyHkDULk+jCAta5+9yeOmmYWQ+4Aqn9zweYn1gO//r06H\n 42d9UVWUTfvk1xtTsQk76eqDzPnO6SA=",
        "X-MC-Unique": "ow1MFmUTPhmgQ5ZvY6iHkg-1",
        "From": "David Marchand <david.marchand@redhat.com>",
        "To": "dev@dpdk.org",
        "Cc": "stephen@networkplumber.org, Anatoly Burakov <anatoly.burakov@intel.com>,\n Ray Kinsella <mdr@ashroe.eu>",
        "Subject": "[PATCH] malloc: remove unused function to set limit",
        "Date": "Tue, 27 Sep 2022 13:46:25 +0200",
        "Message-Id": "<20220927114625.3053221-1-david.marchand@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.1 on 10.11.54.5",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain; charset=\"US-ASCII\"; x-default=true",
        "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": "This function was never implemented and has been deprecated for a long\ntime. We can remove it.\n\nSigned-off-by: David Marchand <david.marchand@redhat.com>\n---\n doc/guides/rel_notes/release_22_11.rst |  2 ++\n lib/eal/common/rte_malloc.c            | 10 ----------\n lib/eal/include/rte_malloc.h           | 17 -----------------\n lib/eal/version.map                    |  1 -\n 4 files changed, 2 insertions(+), 28 deletions(-)",
    "diff": "diff --git a/doc/guides/rel_notes/release_22_11.rst b/doc/guides/rel_notes/release_22_11.rst\nindex 7f61cdf56a..2c042e1eec 100644\n--- a/doc/guides/rel_notes/release_22_11.rst\n+++ b/doc/guides/rel_notes/release_22_11.rst\n@@ -112,6 +112,8 @@ API Changes\n   in the future. Applications can use ``devtools/cocci/func_or_ret.cocci``\n   to update their code.\n \n+* mem: Removed not implemented and deprecated ``rte_malloc_set_limit``.\n+\n * mempool: Deprecated helper macro ``MEMPOOL_HEADER_SIZE()`` is removed.\n   The replacement macro ``RTE_MEMPOOL_HEADER_SIZE()`` is internal only.\n \ndiff --git a/lib/eal/common/rte_malloc.c b/lib/eal/common/rte_malloc.c\nindex 7c67d2156f..48db264449 100644\n--- a/lib/eal/common/rte_malloc.c\n+++ b/lib/eal/common/rte_malloc.c\n@@ -352,16 +352,6 @@ rte_malloc_dump_stats(FILE *f, __rte_unused const char *type)\n \treturn;\n }\n \n-/*\n- * TODO: Set limit to memory that can be allocated to memory type\n- */\n-int\n-rte_malloc_set_limit(__rte_unused const char *type,\n-\t\t__rte_unused size_t max)\n-{\n-\treturn 0;\n-}\n-\n /*\n  * Return the IO address of a virtual address obtained through rte_malloc\n  */\ndiff --git a/lib/eal/include/rte_malloc.h b/lib/eal/include/rte_malloc.h\nindex 3892519fab..748dfa8697 100644\n--- a/lib/eal/include/rte_malloc.h\n+++ b/lib/eal/include/rte_malloc.h\n@@ -521,23 +521,6 @@ rte_malloc_dump_stats(FILE *f, const char *type);\n void\n rte_malloc_dump_heaps(FILE *f);\n \n-/**\n- * Set the maximum amount of allocated memory for this type.\n- *\n- * This is not yet implemented\n- *\n- * @param type\n- *   A string identifying the type of allocated objects.\n- * @param max\n- *   The maximum amount of allocated bytes for this type.\n- * @return\n- *   - 0: Success.\n- *   - (-1): Error.\n- */\n-__rte_deprecated\n-int\n-rte_malloc_set_limit(const char *type, size_t max);\n-\n /**\n  * Return the IO address of a virtual address obtained through\n  * rte_malloc\ndiff --git a/lib/eal/version.map b/lib/eal/version.map\nindex f7d185155c..e617ba773c 100644\n--- a/lib/eal/version.map\n+++ b/lib/eal/version.map\n@@ -165,7 +165,6 @@ DPDK_23 {\n \trte_malloc_heap_memory_detach;\n \trte_malloc_heap_memory_remove;\n \trte_malloc_heap_socket_is_external;\n-\trte_malloc_set_limit;\n \trte_malloc_socket;\n \trte_malloc_validate;\n \trte_malloc_virt2iova;\n",
    "prefixes": []
}