get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 68184,
    "url": "http://patches.dpdk.org/api/patches/68184/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1586604269-15968-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": "<1586604269-15968-1-git-send-email-wangyunjian@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1586604269-15968-1-git-send-email-wangyunjian@huawei.com",
    "date": "2020-04-11T11:24:29",
    "name": "[v4,4/5] net/tap: fix close a valid fd",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "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/1586604269-15968-1-git-send-email-wangyunjian@huawei.com/mbox/",
    "series": [
        {
            "id": 9312,
            "url": "http://patches.dpdk.org/api/series/9312/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=9312",
            "date": "2020-04-11T11:21:32",
            "name": "fixes for tap",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/9312/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/68184/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/68184/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 E8DD5A059F;\n\tSat, 11 Apr 2020 13:24:57 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id CD7461C191;\n\tSat, 11 Apr 2020 13:24:57 +0200 (CEST)",
            "from huawei.com (szxga05-in.huawei.com [45.249.212.191])\n by dpdk.org (Postfix) with ESMTP id A16D12B86;\n Sat, 11 Apr 2020 13:24:56 +0200 (CEST)",
            "from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58])\n by Forcepoint Email with ESMTP id A84BDAA73ABCE784E356;\n Sat, 11 Apr 2020 19:24:53 +0800 (CST)",
            "from localhost (10.173.251.152) by DGGEMS412-HUB.china.huawei.com\n (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Sat, 11 Apr 2020\n 19:24:43 +0800"
        ],
        "From": "wangyunjian <wangyunjian@huawei.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<ferruh.yigit@intel.com>, <keith.wiles@intel.com>,\n <jerry.lilijun@huawei.com>, <xudingke@huawei.com>, Yunjian Wang\n <wangyunjian@huawei.com>, <stable@dpdk.org>",
        "Date": "Sat, 11 Apr 2020 19:24:29 +0800",
        "Message-ID": "<1586604269-15968-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 v4 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\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 6a77b2a7e..829a9e9b4 100644\n--- a/drivers/net/tap/rte_eth_tap.c\n+++ b/drivers/net/tap/rte_eth_tap.c\n@@ -2447,10 +2447,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": [
        "v4",
        "4/5"
    ]
}