get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 68606,
    "url": "http://patches.dpdk.org/api/patches/68606/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1587006285-21604-1-git-send-email-wangyunjian@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": "<1587006285-21604-1-git-send-email-wangyunjian@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1587006285-21604-1-git-send-email-wangyunjian@huawei.com",
    "date": "2020-04-16T03:04:45",
    "name": "[v5,4/5] net/tap: fix close a valid fd",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "dfb428c7a68a4a90093ee6bcc6003519c3c02d74",
    "submitter": {
        "id": 551,
        "url": "http://patches.dpdk.org/api/people/551/?format=api",
        "name": "Yunjian Wang",
        "email": "wangyunjian@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/1587006285-21604-1-git-send-email-wangyunjian@huawei.com/mbox/",
    "series": [
        {
            "id": 9408,
            "url": "http://patches.dpdk.org/api/series/9408/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=9408",
            "date": "2020-04-16T03:03:57",
            "name": "fixes for tap",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/9408/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/68606/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/68606/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 0E9EFA0588;\n\tThu, 16 Apr 2020 05:05:03 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E12B41DA33;\n\tThu, 16 Apr 2020 05:05:02 +0200 (CEST)",
            "from huawei.com (szxga06-in.huawei.com [45.249.212.32])\n by dpdk.org (Postfix) with ESMTP id 9BBF11DA26;\n Thu, 16 Apr 2020 05:05:01 +0200 (CEST)",
            "from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60])\n by Forcepoint Email with ESMTP id 37FCCFFB4DA95C33A9B8;\n Thu, 16 Apr 2020 11:05:00 +0800 (CST)",
            "from localhost (10.173.251.152) by DGGEMS407-HUB.china.huawei.com\n (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Thu, 16 Apr 2020\n 11:04:49 +0800"
        ],
        "From": "wangyunjian <wangyunjian@huawei.com>",
        "To": "<dev@dpdk.org>, <ferruh.yigit@intel.com>",
        "CC": "<keith.wiles@intel.com>, <jerry.lilijun@huawei.com>,\n <xudingke@huawei.com>, Yunjian Wang <wangyunjian@huawei.com>,\n <stable@dpdk.org>",
        "Date": "Thu, 16 Apr 2020 11:04:45 +0800",
        "Message-ID": "<1587006285-21604-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.173.251.152]",
        "X-CFilter-Loop": "Reflected",
        "Subject": "[dpdk-dev]  [PATCH v5 4/5] net/tap: fix close a valid fd",
        "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 <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": "From: Yunjian Wang <wangyunjian@huawei.com>\n\nThe internal structure is freed and set to NULL in the\nrte_eth_dev_release_port() and zero is a valid fd. Ultimately\nleads to a valid fd was closed by mistake.\n\nFixes: 3101191c63ab (\"net/tap: fix device removal when no queue exist\")\nCC: stable@dpdk.org\n\nReviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>\nSigned-off-by: Yunjian Wang <wangyunjian@huawei.com>\n---\n drivers/net/tap/rte_eth_tap.c | 4 ----\n 1 file changed, 4 deletions(-)",
    "diff": "diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c\nindex 576055e16..eab1fb771 100644\n--- a/drivers/net/tap/rte_eth_tap.c\n+++ b/drivers/net/tap/rte_eth_tap.c\n@@ -2451,10 +2451,6 @@ rte_pmd_tap_remove(struct rte_vdev_device *dev)\n \ttap_devices_count--;\n \trte_eth_dev_release_port(eth_dev);\n \n-\tif (internals->ka_fd != -1) {\n-\t\tclose(internals->ka_fd);\n-\t\tinternals->ka_fd = -1;\n-\t}\n \treturn 0;\n }\n \n",
    "prefixes": [
        "v5",
        "4/5"
    ]
}