get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 129608,
    "url": "http://patches.dpdk.org/api/patches/129608/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230718024006.2154-7-fengchengwen@huawei.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": "<20230718024006.2154-7-fengchengwen@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230718024006.2154-7-fengchengwen@huawei.com",
    "date": "2023-07-18T02:40:06",
    "name": "[v17,6/6] test/memarea: support dump API test",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d76db8d0406171501b4962bb2e084583cb5ce2dc",
    "submitter": {
        "id": 2146,
        "url": "http://patches.dpdk.org/api/people/2146/?format=api",
        "name": "fengchengwen",
        "email": "fengchengwen@huawei.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230718024006.2154-7-fengchengwen@huawei.com/mbox/",
    "series": [
        {
            "id": 28961,
            "url": "http://patches.dpdk.org/api/series/28961/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=28961",
            "date": "2023-07-18T02:40:06",
            "name": "introduce memarea library",
            "version": 17,
            "mbox": "http://patches.dpdk.org/series/28961/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/129608/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/129608/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 6E20A42EA1;\n\tTue, 18 Jul 2023 04:48:27 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4CE8142D0D;\n\tTue, 18 Jul 2023 04:48:24 +0200 (CEST)",
            "from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255])\n by mails.dpdk.org (Postfix) with ESMTP id 775B942B8E\n for <dev@dpdk.org>; Tue, 18 Jul 2023 04:48:20 +0200 (CEST)",
            "from dggpeml100024.china.huawei.com (unknown [172.30.72.55])\n by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4R4jzX5n9Dz18Lpg;\n Tue, 18 Jul 2023 10:47:36 +0800 (CST)",
            "from localhost.localdomain (10.50.163.32) by\n dggpeml100024.china.huawei.com (7.185.36.115) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2507.27; Tue, 18 Jul 2023 10:48:18 +0800"
        ],
        "From": "Chengwen Feng <fengchengwen@huawei.com>",
        "To": "<thomas@monjalon.net>, <david.marchand@redhat.com>",
        "CC": "<dev@dpdk.org>, <mb@smartsharesystems.com>, <anatoly.burakov@intel.com>,\n <dmitry.kozliuk@gmail.com>, <jerinjacobk@gmail.com>, <hofors@lysator.liu.se>,\n <stephen@networkplumber.org>",
        "Subject": "[PATCH v17 6/6] test/memarea: support dump API test",
        "Date": "Tue, 18 Jul 2023 02:40:06 +0000",
        "Message-ID": "<20230718024006.2154-7-fengchengwen@huawei.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20230718024006.2154-1-fengchengwen@huawei.com>",
        "References": "<20220721044648.6817-1-fengchengwen@huawei.com>\n <20230718024006.2154-1-fengchengwen@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Content-Transfer-Encoding": "8bit",
        "X-Originating-IP": "[10.50.163.32]",
        "X-ClientProxiedBy": "dggems705-chm.china.huawei.com (10.3.19.182) To\n dggpeml100024.china.huawei.com (7.185.36.115)",
        "X-CFilter-Loop": "Reflected",
        "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 patch supports rte_memarea_dump() API test.\n\nSigned-off-by: Chengwen Feng <fengchengwen@huawei.com>\nReviewed-by: Dongdong Liu <liudongdong3@huawei.com>\nAcked-by: Morten Brørup <mb@smartsharesystems.com>\n---\n app/test/test_memarea.c | 40 ++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 40 insertions(+)",
    "diff": "diff --git a/app/test/test_memarea.c b/app/test/test_memarea.c\nindex 8a1a0e2e2a..7c751a0d99 100644\n--- a/app/test/test_memarea.c\n+++ b/app/test/test_memarea.c\n@@ -320,6 +320,45 @@ test_memarea_alloc_free(void)\n \n \tTEST_ASSERT(rte_errno == 0, \"Expected Zero\");\n \n+\tfprintf(stderr, \"There should have no allocated object.\\n\");\n+\trte_memarea_dump(ma, stderr, true);\n+\n+\trte_memarea_destroy(ma);\n+\n+\treturn TEST_SUCCESS;\n+}\n+\n+static int\n+test_memarea_dump(void)\n+{\n+\tstruct rte_memarea_param init;\n+\tstruct rte_memarea *ma;\n+\tint ret;\n+\n+\ttest_memarea_init_param(&init);\n+\tinit.source = RTE_MEMAREA_SOURCE_LIBC;\n+\tinit.total_sz = MEMAREA_TEST_DEFAULT_SIZE;\n+\tma = rte_memarea_create(&init);\n+\tTEST_ASSERT(ma != NULL, \"Expected Non-NULL\");\n+\n+\t/* test for invalid parameters */\n+\tret = rte_memarea_dump(NULL, stderr, false);\n+\tTEST_ASSERT(ret == -1, \"Expected -1\");\n+\tTEST_ASSERT(rte_errno == EINVAL, \"Expected EINVAL\");\n+\tret = rte_memarea_dump(ma, NULL, false);\n+\tTEST_ASSERT(ret == -1, \"Expected -1\");\n+\tTEST_ASSERT(rte_errno == EINVAL, \"Expected EINVAL\");\n+\n+\t/* test for dump */\n+\t(void)rte_memarea_alloc(ma, 1);\n+\t(void)rte_memarea_alloc(ma, 1);\n+\t(void)rte_memarea_alloc(ma, 1);\n+\t(void)rte_memarea_alloc(ma, MEMAREA_TEST_DEFAULT_SIZE);\n+\t(void)rte_memarea_alloc(ma, MEMAREA_TEST_DEFAULT_SIZE);\n+\tfprintf(stderr, \"There should have three allocated object.\\n\");\n+\tret = rte_memarea_dump(ma, stderr, true);\n+\tTEST_ASSERT(ret == 0, \"Expected ZERO\");\n+\n \trte_memarea_destroy(ma);\n \n \treturn TEST_SUCCESS;\n@@ -337,6 +376,7 @@ static struct unit_test_suite memarea_test_suite  = {\n \t\tTEST_CASE(test_memarea_alloc_fail),\n \t\tTEST_CASE(test_memarea_free_fail),\n \t\tTEST_CASE(test_memarea_alloc_free),\n+\t\tTEST_CASE(test_memarea_dump),\n \n \t\tTEST_CASES_END() /**< NULL terminate unit test array */\n \t}\n",
    "prefixes": [
        "v17",
        "6/6"
    ]
}