get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 62876,
    "url": "http://patches.dpdk.org/api/patches/62876/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1573548459-6931-1-git-send-email-matan@mellanox.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": "<1573548459-6931-1-git-send-email-matan@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1573548459-6931-1-git-send-email-matan@mellanox.com",
    "date": "2019-11-12T08:47:38",
    "name": "[1/2] bus/pci: fix driver detach clear",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "23527c8d016a4cae685c6631f3d977ccd32a1a7e",
    "submitter": {
        "id": 796,
        "url": "http://patches.dpdk.org/api/people/796/?format=api",
        "name": "Matan Azrad",
        "email": "matan@mellanox.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1573548459-6931-1-git-send-email-matan@mellanox.com/mbox/",
    "series": [
        {
            "id": 7406,
            "url": "http://patches.dpdk.org/api/series/7406/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=7406",
            "date": "2019-11-12T08:47:39",
            "name": "[1/2] bus/pci: fix driver detach clear",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/7406/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/62876/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/62876/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 560F1A04AB;\n\tTue, 12 Nov 2019 09:48:01 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E533D2BB1;\n\tTue, 12 Nov 2019 09:47:54 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 1E016374\n for <dev@dpdk.org>; Tue, 12 Nov 2019 09:47:50 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n matan@mellanox.com)\n with ESMTPS (AES256-SHA encrypted); 12 Nov 2019 10:47:47 +0200",
            "from pegasus07.mtr.labs.mlnx (pegasus07.mtr.labs.mlnx\n [10.210.16.112])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id xAC8ll0g025250;\n Tue, 12 Nov 2019 10:47:47 +0200"
        ],
        "From": "Matan Azrad <matan@mellanox.com>",
        "To": "dev@dpdk.org",
        "Cc": "Gaetan Rivet <gaetan.rivet@6wind.com>,\n Bernard Iremonger <bernard.iremonger@intel.com>, mukawa@igel.co.jp,\n stable@dpdk.org",
        "Date": "Tue, 12 Nov 2019 08:47:38 +0000",
        "Message-Id": "<1573548459-6931-1-git-send-email-matan@mellanox.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "Subject": "[dpdk-dev] [PATCH 1/2] bus/pci: fix driver detach clear",
        "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": "When a rte_device is unplugged, the driver should be detached from the\ndevice.\n\nThe PCI detach driver operation wrongly didn't clear the driver from the\ndevice structure what remain the device in probe state from the EAL\npoint of view.\n\nClear the driver in driver detach successful operation.\n\nFixes: dbe6b4b61b0e (\"pci: probe or close device\")\nCc: mukawa@igel.co.jp\nCc: stable@dpdk.org\n\nSigned-off-by: Matan Azrad <matan@mellanox.com>\n---\n drivers/bus/pci/pci_common.c | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/drivers/bus/pci/pci_common.c b/drivers/bus/pci/pci_common.c\nindex 6b46b4f..3f55420 100644\n--- a/drivers/bus/pci/pci_common.c\n+++ b/drivers/bus/pci/pci_common.c\n@@ -247,6 +247,7 @@ static struct rte_devargs *pci_devargs_lookup(struct rte_pci_device *dev)\n \n \t/* clear driver structure */\n \tdev->driver = NULL;\n+\tdev->device.driver = NULL;\n \n \tif (dr->drv_flags & RTE_PCI_DRV_NEED_MAPPING)\n \t\t/* unmap resources for devices that use igb_uio */\n",
    "prefixes": [
        "1/2"
    ]
}