get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 134120,
    "url": "http://patches.dpdk.org/api/patches/134120/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/b89c064ee63b53b3f26dd6b43e00f18c7caf3b20.1699850231.git.gmuthukrishn@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": "<b89c064ee63b53b3f26dd6b43e00f18c7caf3b20.1699850231.git.gmuthukrishn@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/b89c064ee63b53b3f26dd6b43e00f18c7caf3b20.1699850231.git.gmuthukrishn@marvell.com",
    "date": "2023-11-13T04:41:01",
    "name": "[v6,1/4] app/dma-perf: add skip support",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "6dd8752d31d52df05650e572f76e29781032f2f2",
    "submitter": {
        "id": 2301,
        "url": "http://patches.dpdk.org/api/people/2301/?format=api",
        "name": "Gowrishankar Muthukrishnan",
        "email": "gmuthukrishn@marvell.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/b89c064ee63b53b3f26dd6b43e00f18c7caf3b20.1699850231.git.gmuthukrishn@marvell.com/mbox/",
    "series": [
        {
            "id": 30255,
            "url": "http://patches.dpdk.org/api/series/30255/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30255",
            "date": "2023-11-13T04:41:00",
            "name": "PCI Dev and SG copy support",
            "version": 6,
            "mbox": "http://patches.dpdk.org/series/30255/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/134120/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/134120/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 B222B43315;\n\tMon, 13 Nov 2023 05:41:21 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3CDD3402C9;\n\tMon, 13 Nov 2023 05:41:20 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 670F9402C9\n for <dev@dpdk.org>; Mon, 13 Nov 2023 05:41:18 +0100 (CET)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 3AD4TfZG012146; Sun, 12 Nov 2023 20:41:17 -0800",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3ua7uukxmt-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Sun, 12 Nov 2023 20:41:17 -0800",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Sun, 12 Nov 2023 20:41:15 -0800",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend\n Transport; Sun, 12 Nov 2023 20:41:15 -0800",
            "from BG-LT91401.marvell.com (BG-LT91401.marvell.com [10.28.168.34])\n by maili.marvell.com (Postfix) with ESMTP id 5C4D93F7076;\n Sun, 12 Nov 2023 20:41:12 -0800 (PST)"
        ],
        "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=FQh2Vzkl2/X67DGlmTanXW2C94U/Em4+5ja8i/BBEYw=;\n b=aQ1hwOjjhoArlN/NQ3VI+0XL4oezwdj5YuMRV0hnnEnaWPZOFsAbcy3ejn1h2HNirsXX\n rN25EScyX+PojX9MbsKWhizha5zLvjM+qcAiCbm+wuPOAcO0P3++P5xXvbVLMJy1xWF5\n 9zA4/noRRMqr7gtYqT60w+qUOC7JJlgOIe979l+x3IsmgbAVGuIWXMvvwNybOd8NFhK1\n XdulbUikPYtDBi4XeWlQc2WY4uM8cA+HwEKBS6vasiC/PMCR+jOZTo5kIO4l1LLfb4Y3\n UWVNVXGEao0I9YPXv5ZXr4cgt58kv6TQ+hYWpvvLamDMS0JFeBgyfjCK+FONdGZ7YwvT bQ==",
        "From": "Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<anoobj@marvell.com>, Cheng Jiang <honest.jiang@foxmail.com>, Kevin Laatz\n <kevin.laatz@intel.com>, Bruce Richardson <bruce.richardson@intel.com>,\n \"Pavan Nikhilesh\" <pbhagavatula@marvell.com>, Amit Prakash Shukla\n <amitprakashs@marvell.com>",
        "Subject": "[PATCH v6 1/4] app/dma-perf: add skip support",
        "Date": "Mon, 13 Nov 2023 10:11:01 +0530",
        "Message-ID": "\n <b89c064ee63b53b3f26dd6b43e00f18c7caf3b20.1699850231.git.gmuthukrishn@marvell.com>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<cover.1699850231.git.gmuthukrishn@marvell.com>",
        "References": "<cover.1699850231.git.gmuthukrishn@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "BofxGLlxPdoY88IQa_Dk3FIOCgdBOsxO",
        "X-Proofpoint-ORIG-GUID": "BofxGLlxPdoY88IQa_Dk3FIOCgdBOsxO",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2023-11-12_24,2023-11-09_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": "From: Amit Prakash Shukla <amitprakashs@marvell.com>\n\nAdd support to skip running a dma-perf test-case.\n\nSigned-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>\nAcked-by: Anoob Joseph <anoobj@marvell.com>\n---\n app/test-dma-perf/config.ini |  2 ++\n app/test-dma-perf/main.c     | 23 +++++++++++++++++++++++\n app/test-dma-perf/main.h     |  1 +\n 3 files changed, 26 insertions(+)",
    "diff": "diff --git a/app/test-dma-perf/config.ini b/app/test-dma-perf/config.ini\nindex b550f4b23f..4d59234b2a 100644\n--- a/app/test-dma-perf/config.ini\n+++ b/app/test-dma-perf/config.ini\n@@ -36,6 +36,8 @@\n ; If you do not specify a result file, one will be generated with the same name as the configuration\n ; file, with the addition of \"_result.csv\" at the end.\n \n+; \"skip\" To skip a test-case set skip to 1.\n+\n [case1]\n type=DMA_MEM_COPY\n mem_size=10\ndiff --git a/app/test-dma-perf/main.c b/app/test-dma-perf/main.c\nindex e5bccc27da..61260fa072 100644\n--- a/app/test-dma-perf/main.c\n+++ b/app/test-dma-perf/main.c\n@@ -320,6 +320,7 @@ load_configs(const char *path)\n \tconst char *case_type;\n \tconst char *lcore_dma;\n \tconst char *mem_size_str, *buf_size_str, *ring_size_str, *kick_batch_str;\n+\tconst char *skip;\n \tint args_nr, nb_vp;\n \tbool is_dma;\n \n@@ -339,6 +340,13 @@ load_configs(const char *path)\n \tfor (i = 0; i < nb_sections; i++) {\n \t\tsnprintf(section_name, CFG_NAME_LEN, \"case%d\", i + 1);\n \t\ttest_case = &test_cases[i];\n+\n+\t\tskip = rte_cfgfile_get_entry(cfgfile, section_name, \"skip\");\n+\t\tif (skip && (atoi(skip) == 1)) {\n+\t\t\ttest_case->is_skip = true;\n+\t\t\tcontinue;\n+\t\t}\n+\n \t\tcase_type = rte_cfgfile_get_entry(cfgfile, section_name, \"type\");\n \t\tif (case_type == NULL) {\n \t\t\tprintf(\"Error: No case type in case %d, the test will be finished here.\\n\",\n@@ -523,6 +531,21 @@ main(int argc, char *argv[])\n \n \tprintf(\"Running cases...\\n\");\n \tfor (i = 0; i < case_nb; i++) {\n+\t\tif (test_cases[i].is_skip) {\n+\t\t\tprintf(\"Test case %d configured to be skipped.\\n\\n\", i + 1);\n+\t\t\tsnprintf(output_str[0], MAX_OUTPUT_STR_LEN, \"Skip the test-case %d\\n\",\n+\t\t\t\t i + 1);\n+\n+\t\t\tfd = fopen(rst_path_ptr, \"a\");\n+\t\t\tif (!fd) {\n+\t\t\t\tprintf(\"Open output CSV file error.\\n\");\n+\t\t\t\treturn 0;\n+\t\t\t}\n+\t\t\toutput_csv(true);\n+\t\t\tfclose(fd);\n+\t\t\tcontinue;\n+\t\t}\n+\n \t\tif (!test_cases[i].is_valid) {\n \t\t\tprintf(\"Invalid test case %d.\\n\\n\", i + 1);\n \t\t\tsnprintf(output_str[0], MAX_OUTPUT_STR_LEN, \"Invalid case %d\\n\", i + 1);\ndiff --git a/app/test-dma-perf/main.h b/app/test-dma-perf/main.h\nindex f65e264378..be89cb2b65 100644\n--- a/app/test-dma-perf/main.h\n+++ b/app/test-dma-perf/main.h\n@@ -41,6 +41,7 @@ struct lcore_dma_map_t {\n \n struct test_configure {\n \tbool is_valid;\n+\tbool is_skip;\n \tuint8_t test_type;\n \tconst char *test_type_str;\n \tuint16_t src_numa_node;\n",
    "prefixes": [
        "v6",
        "1/4"
    ]
}