get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 92168,
    "url": "http://patches.dpdk.org/api/patches/92168/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1619438277-56847-1-git-send-email-humin29@huawei.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": "<1619438277-56847-1-git-send-email-humin29@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1619438277-56847-1-git-send-email-humin29@huawei.com",
    "date": "2021-04-26T11:57:57",
    "name": "[v2] app/testpmd: fix division by zero bug",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "819668706f3e84838167d54cf5ac9d5fd7d6e61a",
    "submitter": {
        "id": 1944,
        "url": "http://patches.dpdk.org/api/people/1944/?format=api",
        "name": "humin (Q)",
        "email": "humin29@huawei.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1619438277-56847-1-git-send-email-humin29@huawei.com/mbox/",
    "series": [
        {
            "id": 16672,
            "url": "http://patches.dpdk.org/api/series/16672/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=16672",
            "date": "2021-04-26T11:57:57",
            "name": "[v2] app/testpmd: fix division by zero bug",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/16672/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/92168/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/92168/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 01872A0548;\n\tMon, 26 Apr 2021 13:57:51 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B726E41104;\n\tMon, 26 Apr 2021 13:57:51 +0200 (CEST)",
            "from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255])\n by mails.dpdk.org (Postfix) with ESMTP id 3558840140\n for <dev@dpdk.org>; Mon, 26 Apr 2021 13:57:50 +0200 (CEST)",
            "from dggeme756-chm.china.huawei.com (unknown [172.30.72.57])\n by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4FTNb60zhZz19HX3\n for <dev@dpdk.org>; Mon, 26 Apr 2021 19:53:54 +0800 (CST)",
            "from localhost.localdomain (10.69.192.56) by\n dggeme756-chm.china.huawei.com (10.3.19.102) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id\n 15.1.2176.2; Mon, 26 Apr 2021 19:57:48 +0800"
        ],
        "From": "\"Min Hu (Connor)\" <humin29@huawei.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<ferruh.yigit@intel.com>, <xiaoyun.li@intel.com>",
        "Date": "Mon, 26 Apr 2021 19:57:57 +0800",
        "Message-ID": "<1619438277-56847-1-git-send-email-humin29@huawei.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1619005102-38437-1-git-send-email-humin29@huawei.com>",
        "References": "<1619005102-38437-1-git-send-email-humin29@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.69.192.56]",
        "X-ClientProxiedBy": "dggems706-chm.china.huawei.com (10.3.19.183) To\n dggeme756-chm.china.huawei.com (10.3.19.102)",
        "X-CFilter-Loop": "Reflected",
        "Subject": "[dpdk-dev] [PATCH v2] app/testpmd: fix division by zero bug",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Variable total, which may be zero and result in segmentation fault.\n\nThis patch fixed it.\n\nFixes: 9b1249d9ff69 (\"app/testpmd: support dumping socket memory\")\nCc: stable@dpdk.org\n\nSigned-off-by: Min Hu (Connor) <humin29@huawei.com>\n---\n app/test-pmd/cmdline.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c\nindex 12efbc0..51d789e 100644\n--- a/app/test-pmd/cmdline.c\n+++ b/app/test-pmd/cmdline.c\n@@ -9727,7 +9727,7 @@ dump_socket_mem(FILE *f)\n \tfprintf(f,\n \t\t\"Total   : size(M) total: %.6lf alloc: %.6lf(%.3lf%%) free: %.6lf \\tcount alloc: %-4u free: %u\\n\",\n \t\t(double)total / (1024 * 1024), (double)alloc / (1024 * 1024),\n-\t\t(double)alloc * 100 / (double)total,\n+\t\ttotal ? ((double)alloc * 100 / (double)total) : 0,\n \t\t(double)free / (1024 * 1024),\n \t\tn_alloc, n_free);\n \tif (last_allocs)\n",
    "prefixes": [
        "v2"
    ]
}