get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41843,
    "url": "http://patches.dpdk.org/api/patches/41843/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1530191753-18689-3-git-send-email-rk@semihalf.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": "<1530191753-18689-3-git-send-email-rk@semihalf.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1530191753-18689-3-git-send-email-rk@semihalf.com",
    "date": "2018-06-28T13:15:51",
    "name": "[v2,2/4] bus/pci: reference driver structure",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "16a262067530a6e6e019ed61bab2cf2a9ffb67a8",
    "submitter": {
        "id": 951,
        "url": "http://patches.dpdk.org/api/people/951/?format=api",
        "name": "Rafal Kozik",
        "email": "rk@semihalf.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/1530191753-18689-3-git-send-email-rk@semihalf.com/mbox/",
    "series": [
        {
            "id": 293,
            "url": "http://patches.dpdk.org/api/series/293/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=293",
            "date": "2018-06-28T13:15:49",
            "name": "support for write combining",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/293/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/41843/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/41843/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 D243F1B3A1;\n\tThu, 28 Jun 2018 15:16:16 +0200 (CEST)",
            "from mail-lj1-f194.google.com (mail-lj1-f194.google.com\n\t[209.85.208.194]) by dpdk.org (Postfix) with ESMTP id A70D21B058\n\tfor <dev@dpdk.org>; Thu, 28 Jun 2018 15:16:13 +0200 (CEST)",
            "by mail-lj1-f194.google.com with SMTP id u6-v6so4467303lju.13\n\tfor <dev@dpdk.org>; Thu, 28 Jun 2018 06:16:13 -0700 (PDT)",
            "from rafalkozik.semihalf.local\n\t(31-172-191-173.noc.fibertech.net.pl. [31.172.191.173])\n\tby smtp.gmail.com with ESMTPSA id\n\to196-v6sm1303246lfe.95.2018.06.28.06.16.11\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 28 Jun 2018 06:16:12 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=semihalf-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=TN5gJIpVgEqZSWIgDyeRZCdFoyvFZ+ZFjuJTVlNon6M=;\n\tb=sNZ13QrPJYiBS0V3wFex2Sq6JPMDSWpkxaVSHJ0KWuGWVQ2ijl6TF9jj/4ozxc1cY6\n\tICaDcoLbIuiD/HrMx1RPgscqCOd3q+3HlwGI2msdcUNkMq3WxLiIHOFvwbD7CIS4Wc+5\n\tGRwl70XWxIJ7CPDv1fiQ2H+7ccj7Bi9jk4IQPTVqrOfI7xvBb/zhOm50l8BWxueUDSZt\n\t/Rl/Ewvg/LxeiiWk7z/BUrdbcXgC/HFltaBKoLMeao8zH7vlYckH/daRWS43JU0gfHiQ\n\tDOXljlXT+aTl5j6LfcB0eBFk72KvTWV84MS6HkhCAlqeDEEqrK52/hlrwCFB73kILspf\n\tuZAg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=TN5gJIpVgEqZSWIgDyeRZCdFoyvFZ+ZFjuJTVlNon6M=;\n\tb=PvsQ6PXrVfAkmYwbjvB+TssFIXfUg1UVDwdkVSDOq5Zp0Xv4FXLdGXxlNnfOBHLvIy\n\tVVUh+hX05MlPVuvR2sx7Q+ZC2VpXNeWckqmVK4EPPo2INxzS9m1HZXwG3StVMteJcUBm\n\t3AU3eQ26V+m6IoIxEy3/KYB2ybrLJydUwXVuqHgckkJXliO+deZ/e1cElco78eM1CQBQ\n\tGUj90CZfn6bdz+YgrlHpFeXFeZgC5/GYBQRu114Pem6MsSEqLAiAAUfywxcAeeUsKWMd\n\tRbSnhWh3rbDw2nt6DUEOBI0NnDQkuuWB4MQomMA2chz1Rp41WFHicNxTUXbfaJ4qX59w\n\tE3RA==",
        "X-Gm-Message-State": "APt69E23YOsrCo4JvZIbdErKHrLLbidTh8vndTatADFwtLwdZ/EMF1x6\n\tSxxANGEusTcM5jzJO5gJ8tplLsmnhTWQBg==",
        "X-Google-Smtp-Source": "AAOMgpe+25XYU7JMHruOxCGDj/bdB56fGkj2vRoNBHIU+IEUWFf6XlQr/46lXWhrjGqRp8nM1/KWgw==",
        "X-Received": "by 2002:a2e:1290:: with SMTP id\n\t16-v6mr5049846ljs.94.1530191773009; \n\tThu, 28 Jun 2018 06:16:13 -0700 (PDT)",
        "From": "Rafal Kozik <rk@semihalf.com>",
        "To": "dev@dpdk.org",
        "Cc": "mw@semihalf.com, mk@semihalf.com, gtzalik@amazon.com, evgenys@amazon.com,\n\tmatua@amazon.com, igorch@amazon.com, thomas@monjalon.net,\n\tferruh.yigit@intel.com, Rafal Kozik <rk@semihalf.com>",
        "Date": "Thu, 28 Jun 2018 15:15:51 +0200",
        "Message-Id": "<1530191753-18689-3-git-send-email-rk@semihalf.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1530191753-18689-1-git-send-email-rk@semihalf.com>",
        "References": "<CAMG3L49v=nNc9RNweJn4WCpuKeNfCk18o-xv2vq29AUo5CKc=g@mail.gmail.com>\n\t<1530191753-18689-1-git-send-email-rk@semihalf.com>",
        "Subject": "[dpdk-dev] [PATCH v2 2/4] bus/pci: reference driver structure",
        "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": "Add pointer to driver structure before calling rte_pci_map_device.\nIt allows to use driver flags for adjusting configuration.\n\nSigned-off-by: Rafal Kozik <rk@semihalf.com>\nAcked-by: Bruce Richardson <bruce.richardson@intel.com>\n\n---\n drivers/bus/pci/pci_common.c | 17 ++++++++++++-----\n 1 file changed, 12 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/drivers/bus/pci/pci_common.c b/drivers/bus/pci/pci_common.c\nindex d8151b0..8f5d77f 100644\n--- a/drivers/bus/pci/pci_common.c\n+++ b/drivers/bus/pci/pci_common.c\n@@ -158,17 +158,24 @@ rte_pci_probe_one_driver(struct rte_pci_driver *dr,\n \tRTE_LOG(INFO, EAL, \"  probe driver: %x:%x %s\\n\", dev->id.vendor_id,\n \t\tdev->id.device_id, dr->driver.name);\n \n+\t/*\n+\t * reference driver structure\n+\t * This need to be before rte_pci_map_device(), as it enable to use\n+\t * driver flags for adjusting configuration.\n+\t */\n+\tdev->driver = dr;\n+\tdev->device.driver = &dr->driver;\n+\n \tif (dr->drv_flags & RTE_PCI_DRV_NEED_MAPPING) {\n \t\t/* map resources for devices that use igb_uio */\n \t\tret = rte_pci_map_device(dev);\n-\t\tif (ret != 0)\n+\t\tif (ret != 0) {\n+\t\t\tdev->driver = NULL;\n+\t\t\tdev->device.driver = NULL;\n \t\t\treturn ret;\n+\t\t}\n \t}\n \n-\t/* reference driver structure */\n-\tdev->driver = dr;\n-\tdev->device.driver = &dr->driver;\n-\n \t/* call the driver probe() function */\n \tret = dr->probe(dr, dev);\n \tif (ret) {\n",
    "prefixes": [
        "v2",
        "2/4"
    ]
}