get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 54800,
    "url": "http://patches.dpdk.org/api/patches/54800/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1560505157-9769-2-git-send-email-david.marchand@redhat.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": "<1560505157-9769-2-git-send-email-david.marchand@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1560505157-9769-2-git-send-email-david.marchand@redhat.com",
    "date": "2019-06-14T09:39:15",
    "name": "[v2,1/3] kni: refuse to initialise when IOVA is not PA",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "25c3a22e6233abad5effb6fc1212ce7be106aa80",
    "submitter": {
        "id": 1173,
        "url": "http://patches.dpdk.org/api/people/1173/?format=api",
        "name": "David Marchand",
        "email": "david.marchand@redhat.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/1560505157-9769-2-git-send-email-david.marchand@redhat.com/mbox/",
    "series": [
        {
            "id": 5011,
            "url": "http://patches.dpdk.org/api/series/5011/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5011",
            "date": "2019-06-14T09:39:14",
            "name": "Improve automatic selection of IOVA mode",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/5011/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/54800/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/54800/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 44D7A1D502;\n\tFri, 14 Jun 2019 11:39:50 +0200 (CEST)",
            "from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\n\tby dpdk.org (Postfix) with ESMTP id 67B111D4B6;\n\tFri, 14 Jun 2019 11:39:48 +0200 (CEST)",
            "from smtp.corp.redhat.com\n\t(int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id 9FBD737EEA;\n\tFri, 14 Jun 2019 09:39:47 +0000 (UTC)",
            "from dmarchan.remote.csb (unknown [10.40.205.71])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id 849846C357;\n\tFri, 14 Jun 2019 09:39:44 +0000 (UTC)"
        ],
        "From": "David Marchand <david.marchand@redhat.com>",
        "To": "dev@dpdk.org",
        "Cc": "benjamin.walker@intel.com, jerinj@marvell.com, anatoly.burakov@intel.com,\n\tmaxime.coquelin@redhat.com, thomas@monjalon.net, stable@dpdk.org,\n\tFerruh Yigit <ferruh.yigit@intel.com>",
        "Date": "Fri, 14 Jun 2019 11:39:15 +0200",
        "Message-Id": "<1560505157-9769-2-git-send-email-david.marchand@redhat.com>",
        "In-Reply-To": "<1560505157-9769-1-git-send-email-david.marchand@redhat.com>",
        "References": "<20190530174819.1160221-1-benjamin.walker@intel.com>\n\t<1560505157-9769-1-git-send-email-david.marchand@redhat.com>",
        "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.11",
        "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.29]); Fri, 14 Jun 2019 09:39:47 +0000 (UTC)",
        "Subject": "[dpdk-dev] [PATCH v2 1/3] kni: refuse to initialise when IOVA is\n\tnot PA",
        "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": "If a forced iova-mode has been passed at init, kni is not supposed to\nwork.\n\nFixes: 075b182b54ce (\"eal: force IOVA to a particular mode\")\nCc: stable@dpdk.org\n\nSigned-off-by: David Marchand <david.marchand@redhat.com>\n---\n lib/librte_kni/rte_kni.c | 5 +++++\n 1 file changed, 5 insertions(+)",
    "diff": "diff --git a/lib/librte_kni/rte_kni.c b/lib/librte_kni/rte_kni.c\nindex a0f1e37..a6bf323 100644\n--- a/lib/librte_kni/rte_kni.c\n+++ b/lib/librte_kni/rte_kni.c\n@@ -97,6 +97,11 @@ enum kni_ops_status {\n int\n rte_kni_init(unsigned int max_kni_ifaces __rte_unused)\n {\n+\tif (rte_eal_iova_mode() != RTE_IOVA_PA) {\n+\t\tRTE_LOG(ERR, KNI, \"KNI requires IOVA as PA\\n\");\n+\t\treturn -1;\n+\t}\n+\n \t/* Check FD and open */\n \tif (kni_fd < 0) {\n \t\tkni_fd = open(\"/dev/\" KNI_DEVICE, O_RDWR);\n",
    "prefixes": [
        "v2",
        "1/3"
    ]
}