get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 21452,
    "url": "https://patches.dpdk.org/api/patches/21452/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1488794430-25179-27-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-27-git-send-email-jblunck@infradead.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1488794430-25179-27-git-send-email-jblunck@infradead.org",
    "date": "2017-03-06T10:00:18",
    "name": "[dpdk-dev,26/38] net/i40evf: Don't use eth_driver",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "6fb35656a83e92715dd0afd1853741ccec273ab1",
    "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-27-git-send-email-jblunck@infradead.org/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/21452/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/21452/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 74725FA4D;\n\tMon,  6 Mar 2017 11:02:16 +0100 (CET)",
            "from mail-wr0-f195.google.com (mail-wr0-f195.google.com\n\t[209.85.128.195]) by dpdk.org (Postfix) with ESMTP id CCE206CB4\n\tfor <dev@dpdk.org>; Mon,  6 Mar 2017 11:01:15 +0100 (CET)",
            "by mail-wr0-f195.google.com with SMTP id l37so20983938wrc.3\n\tfor <dev@dpdk.org>; Mon, 06 Mar 2017 02:01:15 -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.13 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:13 -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=SelYqPbvcPAeOpA1RO4LfwGcC9RBL5UnXUtkyADgBt0=;\n\tb=uC0oTOCHW1yFYdLQwigmJ/3ZXTi1Ag8HYGFIpvLuPF74hUUJIpz36ORsfQ6sELT/hR\n\tAaexJgqoZacI5o/OrtTnwo/jo85Qui8ahqre0Idnv3DClXHVw/o03AXBDRU78ZAaE1QC\n\tMHvD6FKt9k1yS84yUoEbgIj1CQ9VVrUbXqVHqWsUKKqn7NYZhyagWgFD+PDotyQ9FZmT\n\tyQCIHo2PuRFPtABXxSJa8X7HeeuKq4Wy2NIWlXSI1FwbJ+CVB+YBaHmkKqdu9YI8lAVq\n\tt2TIFxEVVgQhnilRN1kTKtQYVGa+wQ3gmjLGKqE7w26rJ5PKi4FmDg+kz4cOYQ6JWDL+\n\tWvQA==",
        "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=SelYqPbvcPAeOpA1RO4LfwGcC9RBL5UnXUtkyADgBt0=;\n\tb=FSdp43WG0Zndi9rE8H+gVM61EglwCvjwtEsRv6oIUgqZwlKFjKhwy9WN1jlOK3mZ/W\n\twXRpdy+07+J1mtP6D24IGsn4Pf5MaYu+YPp0cLjjmHZTDD0UwO4jY7CX/FdmzhPWGZfO\n\to5Sqjgrio6/8xeuYbTXl6k9cwyYq1SsFkz9Eq0uAAlVOvySbj9BR9Dz1n31s2/5NeqYU\n\tMuykLwbxpDqHuW8FyzHAxLJRUd/NHSF5D/iQJw0lv4ITlA4R7tyKWYe6lY1dWU9JoMrw\n\ti8TKuzMvYBF9yicGdsHC9lcCDXdYV1+zQ1SrefuIEJa07GNnH2AdLxXItnLMplqtnig3\n\tEODQ==",
        "X-Gm-Message-State": "AMke39mFhPA7uJ6W/7fpJStLVYmAX2EGAFYAewp7zdyDjwhGJq5bJM5KkYWRLgJLn+dY/g==",
        "X-Received": "by 10.223.135.47 with SMTP id a44mr12177897wra.197.1488794475177;\n\tMon, 06 Mar 2017 02:01:15 -0800 (PST)",
        "From": "Jan Blunck <jblunck@infradead.org>",
        "To": "dev@dpdk.org",
        "Date": "Mon,  6 Mar 2017 11:00:18 +0100",
        "Message-Id": "<1488794430-25179-27-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 26/38] net/i40evf: 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/i40e/i40e_ethdev_vf.c | 31 ++++++++++++++++++++-----------\n 1 file changed, 20 insertions(+), 11 deletions(-)",
    "diff": "diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c\nindex 55fd344..2a10ad5 100644\n--- a/drivers/net/i40e/i40e_ethdev_vf.c\n+++ b/drivers/net/i40e/i40e_ethdev_vf.c\n@@ -55,6 +55,7 @@\n #include <rte_alarm.h>\n #include <rte_ether.h>\n #include <rte_ethdev.h>\n+#include <rte_ethdev_pci.h>\n #include <rte_atomic.h>\n #include <rte_malloc.h>\n #include <rte_dev.h>\n@@ -1542,22 +1543,30 @@ i40evf_dev_uninit(struct rte_eth_dev *eth_dev)\n \n \treturn 0;\n }\n+\n+static int eth_i40evf_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 i40e_adapter), i40evf_dev_init);\n+}\n+\n+static int eth_i40evf_pci_remove(struct rte_pci_device *pci_dev)\n+{\n+\treturn rte_eth_dev_pci_generic_remove(pci_dev, i40evf_dev_uninit);\n+}\n+\n /*\n  * virtual function driver struct\n  */\n-static struct eth_driver rte_i40evf_pmd = {\n-\t.pci_drv = {\n-\t\t.id_table = pci_id_i40evf_map,\n-\t\t.drv_flags = RTE_PCI_DRV_NEED_MAPPING,\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 = i40evf_dev_init,\n-\t.eth_dev_uninit = i40evf_dev_uninit,\n-\t.dev_private_size = sizeof(struct i40e_adapter),\n+static struct rte_pci_driver rte_i40evf_pmd = {\n+\t.id_table = pci_id_i40evf_map,\n+\t.drv_flags = RTE_PCI_DRV_NEED_MAPPING,\n+\t.probe = eth_i40evf_pci_probe,\n+\t.remove = eth_i40evf_pci_remove,\n };\n \n-RTE_PMD_REGISTER_PCI(net_i40e_vf, rte_i40evf_pmd.pci_drv);\n+RTE_PMD_REGISTER_PCI(net_i40e_vf, rte_i40evf_pmd);\n RTE_PMD_REGISTER_PCI_TABLE(net_i40e_vf, pci_id_i40evf_map);\n RTE_PMD_REGISTER_KMOD_DEP(net_i40e_vf, \"* igb_uio | vfio\");\n \n",
    "prefixes": [
        "dpdk-dev",
        "26/38"
    ]
}