get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 36834,
    "url": "http://patches.dpdk.org/api/patches/36834/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/dff6aa2c058a0d7a427b844b1b5f5fd0267fa42f.1522585461.git.anatoly.burakov@intel.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": "<dff6aa2c058a0d7a427b844b1b5f5fd0267fa42f.1522585461.git.anatoly.burakov@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/dff6aa2c058a0d7a427b844b1b5f5fd0267fa42f.1522585461.git.anatoly.burakov@intel.com",
    "date": "2018-04-01T12:26:32",
    "name": "[dpdk-dev,4/4] vfio: do not needlessly check for IOVA mode",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c2fa4fa088e2061c5d05ec0967c06409b66e5ad1",
    "submitter": {
        "id": 4,
        "url": "http://patches.dpdk.org/api/people/4/?format=api",
        "name": "Anatoly Burakov",
        "email": "anatoly.burakov@intel.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/dff6aa2c058a0d7a427b844b1b5f5fd0267fa42f.1522585461.git.anatoly.burakov@intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/36834/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/36834/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 CFC33727F;\n\tSun,  1 Apr 2018 14:26:40 +0200 (CEST)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n\tby dpdk.org (Postfix) with ESMTP id C02A34F9A;\n\tSun,  1 Apr 2018 14:26:36 +0200 (CEST)",
            "from orsmga006.jf.intel.com ([10.7.209.51])\n\tby fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t01 Apr 2018 05:26:35 -0700",
            "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby orsmga006.jf.intel.com with ESMTP; 01 Apr 2018 05:26:33 -0700",
            "from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com\n\t[10.237.217.45])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tw31CQXUY029401; Sun, 1 Apr 2018 13:26:33 +0100",
            "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id w31CQXq9002037;\n\tSun, 1 Apr 2018 13:26:33 +0100",
            "(from aburakov@localhost)\n\tby sivswdev01.ir.intel.com with LOCAL id w31CQXvO002033;\n\tSun, 1 Apr 2018 13:26:33 +0100"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.48,391,1517904000\"; d=\"scan'208\";a=\"30627074\"",
        "From": "Anatoly Burakov <anatoly.burakov@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net, santosh.shukla@caviumnetworks.com, stable@dpdk.org",
        "Date": "Sun,  1 Apr 2018 13:26:32 +0100",
        "Message-Id": "<dff6aa2c058a0d7a427b844b1b5f5fd0267fa42f.1522585461.git.anatoly.burakov@intel.com>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "In-Reply-To": [
            "<37c2e329be49799fae8328e4dd93e5c95da3d326.1522585461.git.anatoly.burakov@intel.com>",
            "<37c2e329be49799fae8328e4dd93e5c95da3d326.1522585461.git.anatoly.burakov@intel.com>"
        ],
        "References": [
            "<37c2e329be49799fae8328e4dd93e5c95da3d326.1522585461.git.anatoly.burakov@intel.com>",
            "<37c2e329be49799fae8328e4dd93e5c95da3d326.1522585461.git.anatoly.burakov@intel.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH 4/4] vfio: do not needlessly check for IOVA mode",
        "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://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": "<https://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": "Cc: stable@dpdk.org\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n lib/librte_eal/linuxapp/eal/eal_vfio.c | 10 ++--------\n 1 file changed, 2 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/linuxapp/eal/eal_vfio.c b/lib/librte_eal/linuxapp/eal/eal_vfio.c\nindex e44ae4d..2421d51 100644\n--- a/lib/librte_eal/linuxapp/eal/eal_vfio.c\n+++ b/lib/librte_eal/linuxapp/eal/eal_vfio.c\n@@ -681,10 +681,7 @@ vfio_type1_dma_map(int vfio_container_fd)\n \t\tdma_map.argsz = sizeof(struct vfio_iommu_type1_dma_map);\n \t\tdma_map.vaddr = ms[i].addr_64;\n \t\tdma_map.size = ms[i].len;\n-\t\tif (rte_eal_iova_mode() == RTE_IOVA_VA)\n-\t\t\tdma_map.iova = dma_map.vaddr;\n-\t\telse\n-\t\t\tdma_map.iova = ms[i].iova;\n+\t\tdma_map.iova = ms[i].iova;\n \t\tdma_map.flags = VFIO_DMA_MAP_FLAG_READ | VFIO_DMA_MAP_FLAG_WRITE;\n \n \t\tret = ioctl(vfio_container_fd, VFIO_IOMMU_MAP_DMA, &dma_map);\n@@ -784,10 +781,7 @@ vfio_spapr_dma_map(int vfio_container_fd)\n \t\tdma_map.argsz = sizeof(struct vfio_iommu_type1_dma_map);\n \t\tdma_map.vaddr = ms[i].addr_64;\n \t\tdma_map.size = ms[i].len;\n-\t\tif (rte_eal_iova_mode() == RTE_IOVA_VA)\n-\t\t\tdma_map.iova = dma_map.vaddr;\n-\t\telse\n-\t\t\tdma_map.iova = ms[i].iova;\n+\t\tdma_map.iova = ms[i].iova;\n \t\tdma_map.flags = VFIO_DMA_MAP_FLAG_READ |\n \t\t\t\t VFIO_DMA_MAP_FLAG_WRITE;\n \n",
    "prefixes": [
        "dpdk-dev",
        "4/4"
    ]
}