get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 138375,
    "url": "https://patches.dpdk.org/api/patches/138375/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20240314094626.1068059-1-mingjinx.ye@intel.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20240314094626.1068059-1-mingjinx.ye@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240314094626.1068059-1-mingjinx.ye@intel.com",
    "date": "2024-03-14T09:46:26",
    "name": "test: fix option block",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "c98022813086eb03d665cb168cd30c25e815d1ad",
    "submitter": {
        "id": 2862,
        "url": "https://patches.dpdk.org/api/people/2862/?format=api",
        "name": "Mingjin Ye",
        "email": "mingjinx.ye@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20240314094626.1068059-1-mingjinx.ye@intel.com/mbox/",
    "series": [
        {
            "id": 31508,
            "url": "https://patches.dpdk.org/api/series/31508/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=31508",
            "date": "2024-03-14T09:46:26",
            "name": "test: fix option block",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/31508/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/138375/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/138375/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 1833243CB2;\n\tThu, 14 Mar 2024 11:04:38 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 896B042E73;\n\tThu, 14 Mar 2024 11:04:37 +0100 (CET)",
            "from mgamail.intel.com (mgamail.intel.com [198.175.65.15])\n by mails.dpdk.org (Postfix) with ESMTP id 945C9406BC;\n Thu, 14 Mar 2024 11:04:25 +0100 (CET)",
            "from orviesa005.jf.intel.com ([10.64.159.145])\n by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Mar 2024 03:04:24 -0700",
            "from unknown (HELO localhost.localdomain) ([10.239.252.253])\n by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Mar 2024 03:04:22 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1710410666; x=1741946666;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=Ki9DSbaR4fklwV46Q18zbUPt7AkEkyRdTilWoVZQ40Q=;\n b=iwnwDs3DpFC4E8y5h+AnbS7rY7XOxOipdU04LMxa87q8R5OLIAQa4pIU\n ce3aZz+heqZ38trFJraEjf8wtvD9RiWp3v8aWcuqma3mCDy+TQewlgB/X\n It5t6SuY+BWLWYLuFex2dbP29k3ZRd+UH0eIlL9Gh1hNaX4q53/X7BmIF\n UXFYt7N+eU71eFFqclYz8pZKyumloZrmsIKgtkoFMFvA4ZLqf82PW8TjN\n UBlDaHY+1eOZsxHS3pjzvNc6qn6oW1iw0A4os8bkT/Z9T/1QFjK0PQIfK\n Ui/f1/Frs0kAafyBgCyoUHEi9dSD55HLCAlBVPc2OPatFHvjfgXArQGnY Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,11012\"; a=\"9036423\"",
            "E=Sophos;i=\"6.07,125,1708416000\";\n   d=\"scan'208\";a=\"9036423\"",
            "E=Sophos;i=\"6.07,125,1708416000\"; d=\"scan'208\";a=\"16976939\""
        ],
        "X-ExtLoop1": "1",
        "From": "Mingjin Ye <mingjinx.ye@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Mingjin Ye <mingjinx.ye@intel.com>,\n\tstable@dpdk.org",
        "Subject": "[PATCH] test: fix option block",
        "Date": "Thu, 14 Mar 2024 09:46:26 +0000",
        "Message-Id": "<20240314094626.1068059-1-mingjinx.ye@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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": "The options allow (-a) and block (-b) cannot be used at the same time.\nTherefore, allow (-a) will not be added when block (-b) is present.\n\nFixes: b3ce7891ad38 (\"test: fix probing in secondary process\")\nCc: stable@dpdk.org\n\nSigned-off-by: Mingjin Ye <mingjinx.ye@intel.com>\n---\n app/test/process.h | 17 ++++++++++++++---\n 1 file changed, 14 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/app/test/process.h b/app/test/process.h\nindex 9fb2bf481c..388c7975cd 100644\n--- a/app/test/process.h\n+++ b/app/test/process.h\n@@ -44,7 +44,7 @@ add_parameter_allow(char **argv, int max_capacity)\n \tint count = 0;\n \n \tRTE_EAL_DEVARGS_FOREACH(NULL, devargs) {\n-\t\tif (strlen(devargs->name) == 0)\n+\t\tif (strlen(devargs->name) == 0 || devargs->type != RTE_DEVTYPE_ALLOWED)\n \t\t\tcontinue;\n \n \t\tif (devargs->data == NULL || strlen(devargs->data) == 0) {\n@@ -74,7 +74,7 @@ process_dup(const char *const argv[], int numargs, const char *env_value)\n {\n \tint num = 0;\n \tchar **argv_cpy;\n-\tint allow_num;\n+\tint allow_num, block_num;\n \tint argv_num;\n \tint i, status;\n \tchar path[32];\n@@ -89,7 +89,18 @@ process_dup(const char *const argv[], int numargs, const char *env_value)\n \tif (pid < 0)\n \t\treturn -1;\n \telse if (pid == 0) {\n-\t\tallow_num = rte_devargs_type_count(RTE_DEVTYPE_ALLOWED);\n+\t\tallow_num = 0;\n+\t\tblock_num = 0;\n+\n+\t\t/* If block (-b) is present, allow (-a) is not added. */\n+\t\tfor (i = 0; i < numargs; i++) {\n+\t\t\tif (strcmp(argv[i], \"-b\") == 0 ||\n+\t\t\t    strcmp(argv[i], \"-block\") == 0)\n+\t\t\t\tblock_num++;\n+\t\t}\n+\t\tif (!block_num)\n+\t\t\tallow_num = rte_devargs_type_count(RTE_DEVTYPE_ALLOWED);\n+\n \t\targv_num = numargs + allow_num + 1;\n \t\targv_cpy = calloc(argv_num, sizeof(char *));\n \t\tif (!argv_cpy)\n",
    "prefixes": []
}