get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 104297,
    "url": "http://patchwork.dpdk.org/api/patches/104297/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20211115060509.216653-1-haiyue.wang@intel.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": "<20211115060509.216653-1-haiyue.wang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211115060509.216653-1-haiyue.wang@intel.com",
    "date": "2021-11-15T06:05:09",
    "name": "[v1] app/testpmd: avoid the process ID out of range",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "c4d2a6cbf4543ad0077ffc689a08a754319a7cf5",
    "submitter": {
        "id": 1044,
        "url": "http://patchwork.dpdk.org/api/people/1044/?format=api",
        "name": "Wang, Haiyue",
        "email": "haiyue.wang@intel.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patchwork.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20211115060509.216653-1-haiyue.wang@intel.com/mbox/",
    "series": [
        {
            "id": 20544,
            "url": "http://patchwork.dpdk.org/api/series/20544/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=20544",
            "date": "2021-11-15T06:05:09",
            "name": "[v1] app/testpmd: avoid the process ID out of range",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/20544/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/104297/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/104297/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 E88DBA0C43;\n\tMon, 15 Nov 2021 07:32:39 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6F50B40E01;\n\tMon, 15 Nov 2021 07:32:39 +0100 (CET)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id AF45940141\n for <dev@dpdk.org>; Mon, 15 Nov 2021 07:32:38 +0100 (CET)",
            "from orsmga007.jf.intel.com ([10.7.209.58])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Nov 2021 22:32:37 -0800",
            "from npg-dpdk-haiyue-1.sh.intel.com ([10.67.118.194])\n by orsmga007.jf.intel.com with ESMTP; 14 Nov 2021 22:32:35 -0800"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10168\"; a=\"294207784\"",
            "E=Sophos;i=\"5.87,235,1631602800\"; d=\"scan'208\";a=\"294207784\"",
            "E=Sophos;i=\"5.87,235,1631602800\"; d=\"scan'208\";a=\"493883261\""
        ],
        "X-ExtLoop1": "1",
        "From": "Haiyue Wang <haiyue.wang@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Haiyue Wang <haiyue.wang@intel.com>, Xiaoyun Li <xiaoyun.li@intel.com>,\n Lijun Ou <oulijun@huawei.com>,\n Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>,\n Ajit Khaparde <ajit.khaparde@broadcom.com>,\n Aman Deep Singh <aman.deep.singh@intel.com>",
        "Subject": "[PATCH v1] app/testpmd: avoid the process ID out of range",
        "Date": "Mon, 15 Nov 2021 14:05:09 +0800",
        "Message-Id": "<20211115060509.216653-1-haiyue.wang@intel.com>",
        "X-Mailer": "git-send-email 2.33.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 'proc-id' should be less than 'num-procs', if not, exit the testpmd\nand show the error message.\n\nFixes: a550baf24af9 (\"app/testpmd: support multi-process\")\n\nSigned-off-by: Haiyue Wang <haiyue.wang@intel.com>\n---\n app/test-pmd/parameters.c | 6 ++++++\n 1 file changed, 6 insertions(+)",
    "diff": "diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c\nindex 0974b0a38f..5251722d0f 100644\n--- a/app/test-pmd/parameters.c\n+++ b/app/test-pmd/parameters.c\n@@ -1527,6 +1527,12 @@ launch_args_parse(int argc, char** argv)\n \t\trte_exit(EXIT_FAILURE, \"Command line is incorrect\\n\");\n \t}\n \n+\tif (proc_id >= (int)num_procs)\n+\t\trte_exit(EXIT_FAILURE,\n+\t\t\t \"The multi-process option '%s(%d)' should be less than '%s(%u)'\\n\",\n+\t\t\t PARAM_PROC_ID, proc_id,\n+\t\t\t PARAM_NUM_PROCS, num_procs);\n+\n \t/* Set offload configuration from command line parameters. */\n \trx_mode.offloads = rx_offloads;\n \ttx_mode.offloads = tx_offloads;\n",
    "prefixes": [
        "v1"
    ]
}