get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 129933,
    "url": "http://patches.dpdk.org/api/patches/129933/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230807130621.2023043-1-amitprakashs@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": "<20230807130621.2023043-1-amitprakashs@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230807130621.2023043-1-amitprakashs@marvell.com",
    "date": "2023-08-07T13:06:20",
    "name": "[1/2] app/dma-perf: skip support in dma-perf application",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "6dd8752d31d52df05650e572f76e29781032f2f2",
    "submitter": {
        "id": 2699,
        "url": "http://patches.dpdk.org/api/people/2699/?format=api",
        "name": "Amit Prakash Shukla",
        "email": "amitprakashs@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/20230807130621.2023043-1-amitprakashs@marvell.com/mbox/",
    "series": [
        {
            "id": 29122,
            "url": "http://patches.dpdk.org/api/series/29122/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29122",
            "date": "2023-08-07T13:06:20",
            "name": "[1/2] app/dma-perf: skip support in dma-perf application",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/29122/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/129933/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/129933/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 12FF142FFE;\n\tMon,  7 Aug 2023 15:06:32 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id AF7F7410D3;\n\tMon,  7 Aug 2023 15:06:31 +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 7403740A8B\n for <dev@dpdk.org>; Mon,  7 Aug 2023 15:06:29 +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 3775pbRG011295; Mon, 7 Aug 2023 06:06:28 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3s9nxkvptg-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Mon, 07 Aug 2023 06:06:28 -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 Mon, 7 Aug 2023 06:06:26 -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; Mon, 7 Aug 2023 06:06:26 -0700",
            "from localhost.localdomain (unknown [10.28.36.157])\n by maili.marvell.com (Postfix) with ESMTP id CF2703F70A0;\n Mon,  7 Aug 2023 06:06: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 : mime-version : content-transfer-encoding :\n content-type; s=pfpt0220; bh=Zmwp/GCe6izshYoo6epsiepx1N90ap+FsFYYRWpjjxo=;\n b=NinNgJPKUvJ9fy6tscn2AdnITgdrNs0Tk6T/g9/8r1eBlkwQypIEu9RuB1XskCxltMCa\n ILNZItGnyGB5fqaiT8UMKjf6SkIb1e4fErzrfjq72hod9KeTWmw7UEqo+bsgH+JGPg1U\n arUQPULam+udwrQPquzVHdCZH0JDNtxAyWo82bieo4ZqvgOMSxmeWg5OeQHz2+uwXn65\n 5RHb3xADCjDX9qE7Ngl6RbI7jKNc9yK6BfG5gS9o9hrTBk3JAqkYbTMa8UssIFkKVayZ\n fYd8NY/0tZAS+uK1EFfXiDw3NRFWKaQFQTp11OrChxxWQL+DqU7cilP3/H9ha9tBHWJS tQ==",
        "From": "Amit Prakash Shukla <amitprakashs@marvell.com>",
        "To": "Cheng Jiang <cheng1.jiang@intel.com>",
        "CC": "<dev@dpdk.org>, <jerinj@marvell.com>, Amit Prakash Shukla\n <amitprakashs@marvell.com>",
        "Subject": "[PATCH 1/2] app/dma-perf: skip support in dma-perf application",
        "Date": "Mon, 7 Aug 2023 18:36:20 +0530",
        "Message-ID": "<20230807130621.2023043-1-amitprakashs@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "DMi_qBs5uNY3rEEMbgUivCZYfpYJ8ANo",
        "X-Proofpoint-ORIG-GUID": "DMi_qBs5uNY3rEEMbgUivCZYfpYJ8ANo",
        "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-07_13,2023-08-03_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 support to skip running a dma-perf test-case.\n\nSigned-off-by: Amit Prakash Shukla <amitprakashs@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": [
        "1/2"
    ]
}