get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 53125,
    "url": "https://patches.dpdk.org/api/patches/53125/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1556358462-9920-1-git-send-email-wangyunjian@huawei.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": "<1556358462-9920-1-git-send-email-wangyunjian@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1556358462-9920-1-git-send-email-wangyunjian@huawei.com",
    "date": "2019-04-27T09:47:42",
    "name": "ethdev: add size and align to compose dma zone name strings",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": true,
    "hash": "e58dbf9a53c4c376570fe81830968f439d428096",
    "submitter": {
        "id": 551,
        "url": "https://patches.dpdk.org/api/people/551/?format=api",
        "name": "Yunjian Wang",
        "email": "wangyunjian@huawei.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1556358462-9920-1-git-send-email-wangyunjian@huawei.com/mbox/",
    "series": [
        {
            "id": 4494,
            "url": "https://patches.dpdk.org/api/series/4494/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=4494",
            "date": "2019-04-27T09:47:42",
            "name": "ethdev: add size and align to compose dma zone name strings",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/4494/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/53125/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/53125/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 371091B659;\n\tSat, 27 Apr 2019 11:48:08 +0200 (CEST)",
            "from huawei.com (szxga07-in.huawei.com [45.249.212.35])\n\tby dpdk.org (Postfix) with ESMTP id 9D5802C55\n\tfor <dev@dpdk.org>; Sat, 27 Apr 2019 11:47:56 +0200 (CEST)",
            "from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58])\n\tby Forcepoint Email with ESMTP id D3D79BC10941641A1AA1\n\tfor <dev@dpdk.org>; Sat, 27 Apr 2019 17:47:53 +0800 (CST)",
            "from localhost (10.177.24.66) by DGGEMS407-HUB.china.huawei.com\n\t(10.3.19.207) with Microsoft SMTP Server id 14.3.439.0;\n\tSat, 27 Apr 2019 17:47:47 +0800"
        ],
        "From": "wangyunjian <wangyunjian@huawei.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<xudingke@huawei.com>, Yunjian Wang <wangyunjian@huawei.com>",
        "Date": "Sat, 27 Apr 2019 17:47:42 +0800",
        "Message-ID": "<1556358462-9920-1-git-send-email-wangyunjian@huawei.com>",
        "X-Mailer": "git-send-email 1.9.5.msysgit.1",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.177.24.66]",
        "X-CFilter-Loop": "Reflected",
        "Subject": "[dpdk-dev] [PATCH] ethdev: add size and align to compose dma zone\n\tname strings",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Yunjian Wang <wangyunjian@huawei.com>\n\nThe current dma zone name consists of the port_id, queue_id and\nring_name. If a port_id is reused, a new nic maybe use same dma\nzone name. At this time, the zone size of the new driver is\ndiffernt. When the zone is reused, it may cause illegal access\nto memory.\n\nSigned-off-by: Yunjian Wang <wangyunjian@huawei.com>\n---\n lib/librte_ethdev/rte_ethdev.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c\nindex d7cfa3d..0703cda 100644\n--- a/lib/librte_ethdev/rte_ethdev.c\n+++ b/lib/librte_ethdev/rte_ethdev.c\n@@ -3630,9 +3630,9 @@ int rte_eth_set_queue_rate_limit(uint16_t port_id, uint16_t queue_idx,\n \tconst struct rte_memzone *mz;\n \tint rc;\n \n-\trc = snprintf(z_name, sizeof(z_name), \"eth_p%d_q%d_%s\",\n-\t\t      dev->data->port_id, queue_id, ring_name);\n-\tif (rc >= RTE_MEMZONE_NAMESIZE) {\n+\trc = snprintf(z_name, sizeof(z_name), \"p%dq%d%s0x%zx_%d\",\n+\t\t      dev->data->port_id, queue_id, ring_name, size, align);\n+\tif (rc >= RTE_MEMZONE_NAMESIZE || rc < 0) {\n \t\tRTE_ETHDEV_LOG(ERR, \"ring name too long\\n\");\n \t\trte_errno = ENAMETOOLONG;\n \t\treturn NULL;\n",
    "prefixes": []
}