get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 130082,
    "url": "http://patchwork.dpdk.org/api/patches/130082/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230810123633.2455-2-gmuthukrishn@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20230810123633.2455-2-gmuthukrishn@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230810123633.2455-2-gmuthukrishn@marvell.com",
    "date": "2023-08-10T12:36:31",
    "name": "[v2,1/3] test/dma: add test skip status",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "9713cf98a3f216bca11542e988457a23d1c83c10",
    "submitter": {
        "id": 2301,
        "url": "http://patchwork.dpdk.org/api/people/2301/?format=api",
        "name": "Gowrishankar Muthukrishnan",
        "email": "gmuthukrishn@marvell.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230810123633.2455-2-gmuthukrishn@marvell.com/mbox/",
    "series": [
        {
            "id": 29158,
            "url": "http://patchwork.dpdk.org/api/series/29158/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29158",
            "date": "2023-08-10T12:36:30",
            "name": "test/dma: add vchan reconfig and SG tests",
            "version": 2,
            "mbox": "http://patchwork.dpdk.org/series/29158/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/130082/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/130082/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 29D0043026;\n\tThu, 10 Aug 2023 14:36:49 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 257CA43255;\n\tThu, 10 Aug 2023 14:36:47 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 3E7A343254\n for <dev@dpdk.org>; Thu, 10 Aug 2023 14:36:45 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 37A8XuHn020364; Thu, 10 Aug 2023 05:36:44 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3scj5man3s-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 10 Aug 2023 05:36:44 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Thu, 10 Aug 2023 05:36:42 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend\n Transport; Thu, 10 Aug 2023 05:36:42 -0700",
            "from BG-LT91401.marvell.com (BG-LT91401.marvell.com [10.28.168.34])\n by maili.marvell.com (Postfix) with ESMTP id 656F93F70AF;\n Thu, 10 Aug 2023 05:36:40 -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-transfer-encoding : content-type; s=pfpt0220;\n bh=5Ya7UcfH3IssZSxl0dzSJ2aT+Luh6ew5Le3nX+vzeHU=;\n b=DYu8bS/kksepXEt/f8iRH24026Ox5Z9xBk9KrorSsoMAMKdEdc7TSvO/zNhfgazg7FMx\n KoSWWUTHKsRCq04BH72qG7p+vk52jZ4z0WawiF/1furgVpulURjB64EXPao8jKKCCH6c\n kL6lECaBHfiHlMJvfNJOr3I+p1/4ppk990Efwn+wql/tzeZ57nHHo0ADAcl7EfOoco/G\n JDGDah3H4gkyu9nj2id9A3qs0ugTH8jNPMqNxyi+72k2M0AhmmVJOF8WX1ZKQiQvepeg\n AHnXsVg8VpUpqhwviygiOpqzrqcykXBi2K0+HDzxVXV7mKxRN/8mUs7GWd4jSZhoBCrk 0w==",
        "From": "Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<anoobj@marvell.com>, Chengwen Feng <fengchengwen@huawei.com>, \"Vamsi\n Attunuru\" <vattunuru@marvell.com>, Vidya Sagar Velumuri\n <vvelumuri@marvell.com>, Gowrishankar Muthukrishnan\n <gmuthukrishn@marvell.com>",
        "Subject": "[PATCH v2 1/3] test/dma: add test skip status",
        "Date": "Thu, 10 Aug 2023 18:06:31 +0530",
        "Message-ID": "<20230810123633.2455-2-gmuthukrishn@marvell.com>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<20230810123633.2455-1-gmuthukrishn@marvell.com>",
        "References": "<20230810115933.2164-1-gmuthukrishn@marvell.com>\n <20230810123633.2455-1-gmuthukrishn@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "k-YAbHB0FOv7X2hQw28VuUg4ZHWvdimZ",
        "X-Proofpoint-GUID": "k-YAbHB0FOv7X2hQw28VuUg4ZHWvdimZ",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26\n definitions=2023-08-10_10,2023-08-10_01,2023-05-22_02",
        "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": "Add status on skipped tests.\n\nSigned-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>\n---\n app/test/test_dmadev_api.c | 26 +++++++++++++++++++-------\n 1 file changed, 19 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/app/test/test_dmadev_api.c b/app/test/test_dmadev_api.c\nindex 4a181af90a..a1646472b0 100644\n--- a/app/test/test_dmadev_api.c\n+++ b/app/test/test_dmadev_api.c\n@@ -9,6 +9,8 @@\n #include <rte_test.h>\n #include <rte_dmadev.h>\n \n+#include \"test.h\"\n+\n extern int test_dma_api(uint16_t dev_id);\n \n #define DMA_TEST_API_RUN(test) \\\n@@ -17,9 +19,6 @@ extern int test_dma_api(uint16_t dev_id);\n #define TEST_MEMCPY_SIZE\t1024\n #define TEST_WAIT_US_VAL\t50000\n \n-#define TEST_SUCCESS 0\n-#define TEST_FAILED  -1\n-\n static int16_t test_dev_id;\n static int16_t invalid_dev_id;\n \n@@ -29,6 +28,7 @@ static char *dst;\n static int total;\n static int passed;\n static int failed;\n+static int skipped;\n \n static int\n testsuite_setup(int16_t dev_id)\n@@ -49,6 +49,7 @@ testsuite_setup(int16_t dev_id)\n \ttotal = 0;\n \tpassed = 0;\n \tfailed = 0;\n+\tskipped = 0;\n \n \t/* Set dmadev log level to critical to suppress unnecessary output\n \t * during API tests.\n@@ -78,12 +79,22 @@ testsuite_run_test(int (*test)(void), const char *name)\n \n \tif (test) {\n \t\tret = test();\n-\t\tif (ret < 0) {\n-\t\t\tfailed++;\n-\t\t\tprintf(\"%s Failed\\n\", name);\n-\t\t} else {\n+\t\tswitch (ret) {\n+\t\tcase TEST_SUCCESS:\n \t\t\tpassed++;\n \t\t\tprintf(\"%s Passed\\n\", name);\n+\t\t\tbreak;\n+\t\tcase TEST_FAILED:\n+\t\t\tfailed++;\n+\t\t\tprintf(\"%s Failed\\n\", name);\n+\t\t\tbreak;\n+\t\tcase TEST_SKIPPED:\n+\t\t\tskipped++;\n+\t\t\tprintf(\"%s Skipped\\n\", name);\n+\t\t\tbreak;\n+\t\tdefault:\n+\t\t\tprintf(\"Invalid test status\\n\");\n+\t\t\tbreak;\n \t\t}\n \t}\n \n@@ -566,6 +577,7 @@ test_dma_api(uint16_t dev_id)\n \tprintf(\"Total tests   : %d\\n\", total);\n \tprintf(\"Passed        : %d\\n\", passed);\n \tprintf(\"Failed        : %d\\n\", failed);\n+\tprintf(\"Skipped       : %d\\n\", skipped);\n \n \tif (failed)\n \t\treturn -1;\n",
    "prefixes": [
        "v2",
        "1/3"
    ]
}