get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 109117,
    "url": "https://patches.dpdk.org/api/patches/109117/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220329075047.1526063-1-mingxia.liu@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": "<20220329075047.1526063-1-mingxia.liu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220329075047.1526063-1-mingxia.liu@intel.com",
    "date": "2022-03-29T07:50:47",
    "name": "[v1] app/test-pmd: change a magic number to macro",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "aca2e484ed44dba075f2fe75ae4c610bb613c1f3",
    "submitter": {
        "id": 2514,
        "url": "https://patches.dpdk.org/api/people/2514/?format=api",
        "name": "Liu, Mingxia",
        "email": "mingxia.liu@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20220329075047.1526063-1-mingxia.liu@intel.com/mbox/",
    "series": [
        {
            "id": 22337,
            "url": "https://patches.dpdk.org/api/series/22337/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=22337",
            "date": "2022-03-29T07:50:47",
            "name": "[v1] app/test-pmd: change a magic number to macro",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/22337/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/109117/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/109117/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 C6CE8A0506;\n\tMon,  4 Apr 2022 12:25:08 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6B10540696;\n\tMon,  4 Apr 2022 12:25:08 +0200 (CEST)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id C5BED40691;\n Tue, 29 Mar 2022 10:37:40 +0200 (CEST)",
            "from orsmga007.jf.intel.com ([10.7.209.58])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 29 Mar 2022 01:37:24 -0700",
            "from dpdk-mingxialiu-01.sh.intel.com ([10.67.119.13])\n by orsmga007.jf.intel.com with ESMTP; 29 Mar 2022 01:37:19 -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=1648543061; x=1680079061;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=YWoKKn9UKRp5LBkghJB+7KLPmFcLCUe0zAXm+uPmnWM=;\n b=LYg2bVds/SUw3682c7YocVHjLmVWaZaYpQaUM/tvon7neQQdEZ7owjXy\n u/aYxvCN9BZ/6CIJNViO5ccQ3E25e1RaSXd9kH9bjK3C/t+y6gJMtDF6r\n xE3iv7gkwvVs9nG/w/3NoWRv6PXk6fpXdVsDzyG1GZ61lW893Dib9ChRS\n 9gPWxDh7ngbFsRMvLmVMQDN0NadfdZhIhoODro8cl+ZLi4lEQRpvVICnt\n sgRqsLjx6cQ/rYl8YvM8J6KdqfXkkHLGbh+oolUxhBGxUYTSLjcYBw3hl\n /nD/S6Dr+ufCf10lu+Gn4XujPKQNwsvnXrwAlqVCg5aXQAh7i/U0uu50/ g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10300\"; a=\"256773673\"",
            "E=Sophos;i=\"5.90,219,1643702400\"; d=\"scan'208\";a=\"256773673\"",
            "E=Sophos;i=\"5.90,219,1643702400\"; d=\"scan'208\";a=\"546294900\""
        ],
        "X-ExtLoop1": "1",
        "From": "Mingxia Liu <mingxia.liu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "xiaoyun.li@intel.com, aman.deep.singh@intel.com, yuying.zhang@intel.com,\n mingxial <mingxia.liu@intel.com>, stable@dpdk.org",
        "Subject": "[PATCH v1] app/test-pmd: change a magic number to macro",
        "Date": "Tue, 29 Mar 2022 07:50:47 +0000",
        "Message-Id": "<20220329075047.1526063-1-mingxia.liu@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Mailman-Approved-At": "Mon, 04 Apr 2022 12:25:07 +0200",
        "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: mingxial <mingxia.liu@intel.com>\n\nAdd macro MIN_TOTAL_NUM_MBUFS (1024) to indicate\nwhat the value of total-num-mbufs should bigger than.\n\nFixes: c87988187fdb (\"app/testpmd: add --total-num-mbufs option\")\nCc: stable@dpdk.org\n\nSigned-off-by: mingxial <mingxia.liu@intel.com>\n---\n app/test-pmd/parameters.c | 5 +++--\n app/test-pmd/testpmd.h    | 2 ++\n 2 files changed, 5 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c\nindex daf6a31b2b..641c9c767e 100644\n--- a/app/test-pmd/parameters.c\n+++ b/app/test-pmd/parameters.c\n@@ -940,11 +940,12 @@ launch_args_parse(int argc, char** argv)\n \t\t\t}\n \t\t\tif (!strcmp(lgopts[opt_idx].name, \"total-num-mbufs\")) {\n \t\t\t\tn = atoi(optarg);\n-\t\t\t\tif (n > 1024)\n+\t\t\t\tif (n > MIN_TOTAL_NUM_MBUFS)\n \t\t\t\t\tparam_total_num_mbufs = (unsigned)n;\n \t\t\t\telse\n \t\t\t\t\trte_exit(EXIT_FAILURE,\n-\t\t\t\t\t\t \"total-num-mbufs should be > 1024\\n\");\n+\t\t\t\t\t\t \"total-num-mbufs should be > %d\\n\",\n+\t\t\t\t\t\t MIN_TOTAL_NUM_MBUFS);\n \t\t\t}\n \t\t\tif (!strcmp(lgopts[opt_idx].name, \"max-pkt-len\")) {\n \t\t\t\tn = atoi(optarg);\ndiff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h\nindex 31f766c965..a633f81b50 100644\n--- a/app/test-pmd/testpmd.h\n+++ b/app/test-pmd/testpmd.h\n@@ -72,6 +72,8 @@\n #define NUMA_NO_CONFIG 0xFF\n #define UMA_NO_CONFIG  0xFF\n \n+#define MIN_TOTAL_NUM_MBUFS 1024\n+\n typedef uint8_t  lcoreid_t;\n typedef uint16_t portid_t;\n typedef uint16_t queueid_t;\n",
    "prefixes": [
        "v1"
    ]
}