get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 21454,
    "url": "https://patches.dpdk.org/api/patches/21454/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1488794430-25179-25-git-send-email-jblunck@infradead.org/",
    "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": "<1488794430-25179-25-git-send-email-jblunck@infradead.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1488794430-25179-25-git-send-email-jblunck@infradead.org",
    "date": "2017-03-06T10:00:16",
    "name": "[dpdk-dev,24/38] net/fm10k: Don't use eth_driver",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "171cbe7e96fe3f7ca67864c0a05ad9ec34d97f67",
    "submitter": {
        "id": 249,
        "url": "https://patches.dpdk.org/api/people/249/?format=api",
        "name": "Jan Blunck",
        "email": "jblunck@infradead.org"
    },
    "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/1488794430-25179-25-git-send-email-jblunck@infradead.org/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/21454/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/21454/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 8BDC0FA3D;\n\tMon,  6 Mar 2017 11:02:13 +0100 (CET)",
            "from mail-wr0-f194.google.com (mail-wr0-f194.google.com\n\t[209.85.128.194]) by dpdk.org (Postfix) with ESMTP id 192E8BD28\n\tfor <dev@dpdk.org>; Mon,  6 Mar 2017 11:01:13 +0100 (CET)",
            "by mail-wr0-f194.google.com with SMTP id u48so21047048wrc.1\n\tfor <dev@dpdk.org>; Mon, 06 Mar 2017 02:01:13 -0800 (PST)",
            "from weierstrass.local.net ([91.200.109.169])\n\tby smtp.gmail.com with ESMTPSA id\n\tu145sm3829237wmu.1.2017.03.06.02.01.11 for <dev@dpdk.org>\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 06 Mar 2017 02:01:11 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:subject:date:message-id:in-reply-to:references;\n\tbh=4uDatJsOB1EQ+XbQdc4m3e5zr5o/sHjVPXQPg3+yYlg=;\n\tb=oOL1YrdlOFVRDgQmppc9XTjT9fh8ErcIhUdlZ83WvWJh7w1T5MRieoL3T78sPEutI6\n\tGDMuj2oyrIfHH02+k0nLclMUxIlPI2Uv13JL6Ij215HbNDiEVyiq4WlQNOHt/DoOi1FP\n\trkXHgw+nWUPEa/3fBtzrpq1TMKYELhsvX1to7aUX79SDnaUpQEnrN4ORqNlpEVyqOHxY\n\tOQc6eEmYHWwxrjtklTqXufeLafmzuZsanCRyVB+3F7t9v0xbTrpshbW7zna+2csGU24p\n\tBFM8zJFQeVFuIt21REY8U9nDCAc6Wfw9okvTBHgIDOM6niMeXhYBzrzErZgRk/Kz79jo\n\tPr+A==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=4uDatJsOB1EQ+XbQdc4m3e5zr5o/sHjVPXQPg3+yYlg=;\n\tb=NX7t0lQmAnGgiBae/DoTVuGW1mPU4DxC0aW2yBAlEntfD90m/AgmyyO7fVuUP6QvcO\n\tFjM90ApPUsBmkGPIXfRL5Q/WdonzSlcqIxUnly5CpasglCpK3Svb9AqO10COpSxtE4Ln\n\tbJk0EIRrGuJDNiKUyFz8eaFu+3Y2QP6e5MQci0k0aCQ23Oh6zWMkTIuUg7ZPLYt21QoL\n\tomDcZ0W7UCmszI4cYV++BaVz54zagfeFNfp5OKHdbWITwx8KYBNHIy6ER1Ozny9apieq\n\tLRiFhVDhBbpOP2DUqg/vjN4eoWuzBaYPs/erKP7HzP7HLO+MFSXy96o78t7v0Hf9AMcK\n\tXzFA==",
        "X-Gm-Message-State": "AMke39mPbnUO+1AHwDIJJl2HQhmxlG/41Vt6FCdvA0c9zX68cvfU7EqXN1gl0OBwAmct1Q==",
        "X-Received": "by 10.223.130.214 with SMTP id 80mr14438212wrc.43.1488794472666; \n\tMon, 06 Mar 2017 02:01:12 -0800 (PST)",
        "From": "Jan Blunck <jblunck@infradead.org>",
        "To": "dev@dpdk.org",
        "Date": "Mon,  6 Mar 2017 11:00:16 +0100",
        "Message-Id": "<1488794430-25179-25-git-send-email-jblunck@infradead.org>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1488794430-25179-1-git-send-email-jblunck@infradead.org>",
        "References": "<1488794430-25179-1-git-send-email-jblunck@infradead.org>",
        "Subject": "[dpdk-dev] [PATCH 24/38] net/fm10k: Don't use eth_driver",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Signed-off-by: Jan Blunck <jblunck@infradead.org>\n---\n drivers/net/fm10k/fm10k_ethdev.c | 30 +++++++++++++++++++-----------\n 1 file changed, 19 insertions(+), 11 deletions(-)",
    "diff": "diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c\nindex c4fe746..5bb0426 100644\n--- a/drivers/net/fm10k/fm10k_ethdev.c\n+++ b/drivers/net/fm10k/fm10k_ethdev.c\n@@ -32,6 +32,7 @@\n  */\n \n #include <rte_ethdev.h>\n+#include <rte_ethdev_pci.h>\n #include <rte_malloc.h>\n #include <rte_memzone.h>\n #include <rte_string_fns.h>\n@@ -3067,6 +3068,18 @@ eth_fm10k_dev_uninit(struct rte_eth_dev *dev)\n \treturn 0;\n }\n \n+static int eth_fm10k_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n+\tstruct rte_pci_device *pci_dev)\n+{\n+\treturn rte_eth_dev_pci_generic_probe(pci_dev,\n+\t\tsizeof(struct fm10k_adapter), eth_fm10k_dev_init);\n+}\n+\n+static int eth_fm10k_pci_remove(struct rte_pci_device *pci_dev)\n+{\n+\treturn rte_eth_dev_pci_generic_remove(pci_dev, eth_fm10k_dev_uninit);\n+}\n+\n /*\n  * The set of PCI devices this driver supports. This driver will enable both PF\n  * and SRIOV-VF devices.\n@@ -3078,18 +3091,13 @@ static const struct rte_pci_id pci_id_fm10k_map[] = {\n \t{ .vendor_id = 0, /* sentinel */ },\n };\n \n-static struct eth_driver rte_pmd_fm10k = {\n-\t.pci_drv = {\n-\t\t.id_table = pci_id_fm10k_map,\n-\t\t.drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC,\n-\t\t.probe = rte_eth_dev_pci_probe,\n-\t\t.remove = rte_eth_dev_pci_remove,\n-\t},\n-\t.eth_dev_init = eth_fm10k_dev_init,\n-\t.eth_dev_uninit = eth_fm10k_dev_uninit,\n-\t.dev_private_size = sizeof(struct fm10k_adapter),\n+static struct rte_pci_driver rte_pmd_fm10k = {\n+\t.id_table = pci_id_fm10k_map,\n+\t.drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC,\n+\t.probe = eth_fm10k_pci_probe,\n+\t.remove = eth_fm10k_pci_remove,\n };\n \n-RTE_PMD_REGISTER_PCI(net_fm10k, rte_pmd_fm10k.pci_drv);\n+RTE_PMD_REGISTER_PCI(net_fm10k, rte_pmd_fm10k);\n RTE_PMD_REGISTER_PCI_TABLE(net_fm10k, pci_id_fm10k_map);\n RTE_PMD_REGISTER_KMOD_DEP(net_fm10k, \"* igb_uio | uio_pci_generic | vfio\");\n",
    "prefixes": [
        "dpdk-dev",
        "24/38"
    ]
}