get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41935,
    "url": "https://patches.dpdk.org/api/patches/41935/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1530267873-7236-3-git-send-email-rk@semihalf.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": "<1530267873-7236-3-git-send-email-rk@semihalf.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1530267873-7236-3-git-send-email-rk@semihalf.com",
    "date": "2018-06-29T10:24:31",
    "name": "[v3,2/4] bus/pci: reference driver structure",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "16a262067530a6e6e019ed61bab2cf2a9ffb67a8",
    "submitter": {
        "id": 951,
        "url": "https://patches.dpdk.org/api/people/951/?format=api",
        "name": "Rafal Kozik",
        "email": "rk@semihalf.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1530267873-7236-3-git-send-email-rk@semihalf.com/mbox/",
    "series": [
        {
            "id": 313,
            "url": "https://patches.dpdk.org/api/series/313/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=313",
            "date": "2018-06-29T10:24:29",
            "name": "support for write combining",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/313/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/41935/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/41935/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 E7D581B4DF;\n\tFri, 29 Jun 2018 12:24:43 +0200 (CEST)",
            "from mail-lj1-f195.google.com (mail-lj1-f195.google.com\n\t[209.85.208.195]) by dpdk.org (Postfix) with ESMTP id B14D11B4D1\n\tfor <dev@dpdk.org>; Fri, 29 Jun 2018 12:24:41 +0200 (CEST)",
            "by mail-lj1-f195.google.com with SMTP id v15-v6so6909139ljk.5\n\tfor <dev@dpdk.org>; Fri, 29 Jun 2018 03:24:41 -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\td79-v6sm745514ljd.50.2018.06.29.03.24.40\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tFri, 29 Jun 2018 03:24:40 -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=x5Giy6T7jTc0xkzs6uZkO8Y34Kp/dn62PInFN4x016Y=;\n\tb=BhS0tulcbaEq8mm7jr2H7A6G/CSJ3UZa410Dp49rdDKEsc4P0NSXSZGTcxHpp+YteW\n\tKMWRIQRO9CNumYbV4d8B5CP3DsgxJipOnAsTMrfj1PWpoISlCGovn83ow7W7JeePCGZX\n\tQEr+5ZrwXGDoBuxIbQo63/Dx9YV5+zaFo2RyZtUi8HCEjtTT8NKCRUiFJ7hb5QvaYMhK\n\tnieOalxQHuhY+Q58gZwjil205OXX3Av8ivrfTrUAozM4KiugU5eGUxuZx0r0sfsnruMU\n\t9j1PDvG7RQStPPYrjr+GxO708bbJfdvPvii/1gpe5TZXUPb7xVNRY1hWsqUbp7EJURnH\n\tDrzg==",
        "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=x5Giy6T7jTc0xkzs6uZkO8Y34Kp/dn62PInFN4x016Y=;\n\tb=ZzkTAWyIcKmvzpDWRTtFSOtgqErLtfpOhhzjtrBOh5IByJekQSpnP4Oe+MMMDFJeHf\n\tgTju9LQyCDjoeHiMQaNw3mS0jOVlvVTNbc7e/SWPqJ+jbJ/46L8Xva+YA9yTKIUAZf+I\n\t4qAbnLr5en3Q1Dv8sNBGbo+4bgWlHDdKN39qFN4PuUIpwNeg4OtyIqWEmDzZtZNGYNe6\n\tYBCxM+MDPhJTHZbYH4p95gRK5gF5GxL0Di1sAKxQw6ZH2CT+WkIqX0tcZc4V16fGlDoJ\n\tthAycbos8dnb7Ur25ij/Zh798RIXpabekQXm0/Zf1y9qxZ3G4IZ+Pbwn4c9ABRxJ6V4d\n\tMgSw==",
        "X-Gm-Message-State": "APt69E1t88RxVCkUc8LPK6WvTeubTOoH+4NT95JwCF5s/xuwMICTnkYE\n\tfWEffz0eFLZ6uasUERtDrNvsPMjG/wnhkg==",
        "X-Google-Smtp-Source": "AAOMgpcJyOuXIbBKUi3BaMOBDy4iO65oAfXjteG59dORpkYM7vl3mIQzJsq2A60Y4tLwblrlMZ2X2A==",
        "X-Received": "by 2002:a2e:1d50:: with SMTP id\n\td77-v6mr10068268ljd.104.1530267881264; \n\tFri, 29 Jun 2018 03:24:41 -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": "Fri, 29 Jun 2018 12:24:31 +0200",
        "Message-Id": "<1530267873-7236-3-git-send-email-rk@semihalf.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1530267873-7236-1-git-send-email-rk@semihalf.com>",
        "References": "<1530191753-18689-2-git-send-email-rk@semihalf.com>\n\t<1530267873-7236-1-git-send-email-rk@semihalf.com>",
        "Subject": "[dpdk-dev] [PATCH v3 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 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": [
        "v3",
        "2/4"
    ]
}