get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 21458,
    "url": "https://patches.dpdk.org/api/patches/21458/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1488794430-25179-30-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-30-git-send-email-jblunck@infradead.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1488794430-25179-30-git-send-email-jblunck@infradead.org",
    "date": "2017-03-06T10:00:21",
    "name": "[dpdk-dev,29/38] net/nfp: Don't use eth_driver",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c64618f70eef0295a2f0a2cbcdc95493ff486b55",
    "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-30-git-send-email-jblunck@infradead.org/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/21458/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/21458/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 C31AAFA5C;\n\tMon,  6 Mar 2017 11:02:20 +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 59BD769C3\n\tfor <dev@dpdk.org>; Mon,  6 Mar 2017 11:01:19 +0100 (CET)",
            "by mail-wr0-f195.google.com with SMTP id u108so17053234wrb.2\n\tfor <dev@dpdk.org>; Mon, 06 Mar 2017 02:01:19 -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.17 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:17 -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=B5z4vVxw0aaRFBXjrw4jdUUmEQUKwMwh0+/AXEr36sM=;\n\tb=W++Z3ldfLBE93fAGTje+kGfZkDboTf7pieaYY9Z2J1xSEs9XGX2iHVjrlx4tIYT6au\n\tzEHaab6VjCm2UD4aO1CVs/xN74GDQ1V5WLTdJOmaepyOzvP/GRiSpXwhsj5pqOgNmjnK\n\tdTvJRlI3HzyvBNmQB0QUtUKDfiP9xDQzf+PgP9EXcVqImpnSqngUS84/3GeTiU6fT3Da\n\tRot04g0gCYOa0BDLNIwS/Ur0mOr0RVWO8cAugcbIUEo7nPWsMeK2P1mEVg+peZfFaN3s\n\tHS0YeebpC6uhYADFJsSYIvns8DmGqhPB1MPa+id8h2RlWoT85imPwPYiGIXeePMXP+9G\n\t8/Zg==",
        "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=B5z4vVxw0aaRFBXjrw4jdUUmEQUKwMwh0+/AXEr36sM=;\n\tb=EZ7URtFwH+xXVJ/7CGUwJTevaC1llXVcbLF57gj/7mLpKD9GzF0YiHaYRnqHQM4cwU\n\tT5vFZr0/mNhZynas4YIvNQXyenf0qKWhIEj8UQ2nYcFkCMS2t9PfkSSnspOtdj+pARpI\n\tVxNDsJ9Eg/epEq1vMK9RpnXzfqeidzwqtNTRlroBtjQVhZZ8XBog3ti73RGaj1wLTllZ\n\tK3XRz5wEGw359F3KCWC81kNkVWs3DuB7/KEsq67HmLO/8haDl2ghNP/MvlRkLJl1yCSG\n\tO+ClTItUsqnZDy4rUaACfoev6ydExhIs7Zqp0lmBzEHxSP2lgNMPGjqBxE8dUAoMWC6A\n\teokA==",
        "X-Gm-Message-State": "AMke39mdgzNn8sdczgUQ3yS6EVmH8WhCz3v4LIp2uX8jA0LzeBM+hnCkVQentHooHTv5WQ==",
        "X-Received": "by 10.223.139.68 with SMTP id v4mr14694775wra.70.1488794478987; \n\tMon, 06 Mar 2017 02:01:18 -0800 (PST)",
        "From": "Jan Blunck <jblunck@infradead.org>",
        "To": "dev@dpdk.org",
        "Date": "Mon,  6 Mar 2017 11:00:21 +0100",
        "Message-Id": "<1488794430-25179-30-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 29/38] net/nfp: 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/nfp/nfp_net.c | 29 +++++++++++++++++++----------\n 1 file changed, 19 insertions(+), 10 deletions(-)",
    "diff": "diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c\nindex b9dfe80..4cc003e 100644\n--- a/drivers/net/nfp/nfp_net.c\n+++ b/drivers/net/nfp/nfp_net.c\n@@ -46,6 +46,7 @@\n #include <rte_log.h>\n #include <rte_debug.h>\n #include <rte_ethdev.h>\n+#include <rte_ethdev_pci.h>\n #include <rte_dev.h>\n #include <rte_ether.h>\n #include <rte_malloc.h>\n@@ -2579,18 +2580,26 @@ static const struct rte_pci_id pci_id_nfp_net_map[] = {\n \t},\n };\n \n-static struct eth_driver rte_nfp_net_pmd = {\n-\t.pci_drv = {\n-\t\t.id_table = pci_id_nfp_net_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 = nfp_net_init,\n-\t.dev_private_size = sizeof(struct nfp_net_adapter),\n+static int eth_nfp_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 nfp_net_adapter), nfp_net_init);\n+}\n+\n+static int eth_nfp_pci_remove(struct rte_pci_device *pci_dev)\n+{\n+\treturn rte_eth_dev_pci_generic_remove(pci_dev, NULL);\n+}\n+\n+static struct rte_pci_driver rte_nfp_net_pmd = {\n+\t.id_table = pci_id_nfp_net_map,\n+\t.drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC,\n+\t.probe = eth_nfp_pci_probe,\n+\t.remove = eth_nfp_pci_remove,\n };\n \n-RTE_PMD_REGISTER_PCI(net_nfp, rte_nfp_net_pmd.pci_drv);\n+RTE_PMD_REGISTER_PCI(net_nfp, rte_nfp_net_pmd);\n RTE_PMD_REGISTER_PCI_TABLE(net_nfp, pci_id_nfp_net_map);\n RTE_PMD_REGISTER_KMOD_DEP(net_nfp, \"* igb_uio | uio_pci_generic | vfio\");\n \n",
    "prefixes": [
        "dpdk-dev",
        "29/38"
    ]
}