get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 46124,
    "url": "https://patches.dpdk.org/api/patches/46124/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1538741212-7922-4-git-send-email-alejandro.lucero@netronome.com/",
    "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": "<1538741212-7922-4-git-send-email-alejandro.lucero@netronome.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1538741212-7922-4-git-send-email-alejandro.lucero@netronome.com",
    "date": "2018-10-05T12:06:49",
    "name": "[v2,3/6] bus/pci: check iommu addressing limitation just once",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "bfd879773f841233504f2b3e9ab5c6b88a19f9a7",
    "submitter": {
        "id": 270,
        "url": "https://patches.dpdk.org/api/people/270/?format=api",
        "name": "Alejandro Lucero",
        "email": "alejandro.lucero@netronome.com"
    },
    "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/1538741212-7922-4-git-send-email-alejandro.lucero@netronome.com/mbox/",
    "series": [
        {
            "id": 1716,
            "url": "https://patches.dpdk.org/api/series/1716/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=1716",
            "date": "2018-10-05T12:06:46",
            "name": "use IOVAs check based on DMA mask",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/1716/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/46124/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/46124/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 90E3949E0;\n\tFri,  5 Oct 2018 14:08:24 +0200 (CEST)",
            "from netronome.com (host-79-78-33-110.static.as9105.net\n\t[79.78.33.110]) by dpdk.org (Postfix) with ESMTP id 2FDD32952\n\tfor <dev@dpdk.org>; Fri,  5 Oct 2018 14:08:18 +0200 (CEST)",
            "from netronome.com (localhost [127.0.0.1])\n\tby netronome.com (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id\n\tw95C6wC9007979 for <dev@dpdk.org>; Fri, 5 Oct 2018 13:06:58 +0100",
            "(from alucero@localhost)\n\tby netronome.com (8.14.4/8.14.4/Submit) id w95C6v5r007978\n\tfor dev@dpdk.org; Fri, 5 Oct 2018 13:06:57 +0100"
        ],
        "From": "Alejandro Lucero <alejandro.lucero@netronome.com>",
        "To": "dev@dpdk.org",
        "Date": "Fri,  5 Oct 2018 13:06:49 +0100",
        "Message-Id": "<1538741212-7922-4-git-send-email-alejandro.lucero@netronome.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "In-Reply-To": "<1538741212-7922-1-git-send-email-alejandro.lucero@netronome.com>",
        "References": "<1538741212-7922-1-git-send-email-alejandro.lucero@netronome.com>",
        "Subject": "[dpdk-dev] [PATCH v2 3/6] bus/pci: check iommu addressing\n\tlimitation just once",
        "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": "Current code checks if IOMMU hardware reports enough addressing\nbits for using IOVA mode but it repeats the same check for any\nPCI device present. This is not necessary because the IOMMU hardware\nis the same for all of them.\n\nThis patch only checks the IOMMU using first PCI device found.\n\nSigned-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>\n---\n drivers/bus/pci/linux/pci.c | 7 +++++--\n 1 file changed, 5 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/bus/pci/linux/pci.c b/drivers/bus/pci/linux/pci.c\nindex 04648ac..a871549 100644\n--- a/drivers/bus/pci/linux/pci.c\n+++ b/drivers/bus/pci/linux/pci.c\n@@ -620,8 +620,11 @@\n \t\tFOREACH_DEVICE_ON_PCIBUS(dev) {\n \t\t\tif (!rte_pci_match(drv, dev))\n \t\t\t\tcontinue;\n-\t\t\tif (!pci_one_device_iommu_support_va(dev))\n-\t\t\t\treturn false;\n+\t\t\t/*\n+\t\t\t * just one PCI device needs to be checked out because\n+\t\t\t * the IOMMU hardware is the same for all of them.\n+\t\t\t */\n+\t\t\treturn pci_one_device_iommu_support_va(dev);\n \t\t}\n \t}\n \treturn true;\n",
    "prefixes": [
        "v2",
        "3/6"
    ]
}