get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 46131,
    "url": "http://patches.dpdk.org/api/patches/46131/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1538743527-8285-4-git-send-email-alejandro.lucero@netronome.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": "<1538743527-8285-4-git-send-email-alejandro.lucero@netronome.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1538743527-8285-4-git-send-email-alejandro.lucero@netronome.com",
    "date": "2018-10-05T12:45:24",
    "name": "[v3,3/6] bus/pci: check iommu addressing limitation just once",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "bfd879773f841233504f2b3e9ab5c6b88a19f9a7",
    "submitter": {
        "id": 270,
        "url": "http://patches.dpdk.org/api/people/270/?format=api",
        "name": "Alejandro Lucero",
        "email": "alejandro.lucero@netronome.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/1538743527-8285-4-git-send-email-alejandro.lucero@netronome.com/mbox/",
    "series": [
        {
            "id": 1717,
            "url": "http://patches.dpdk.org/api/series/1717/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1717",
            "date": "2018-10-05T12:45:21",
            "name": "use IOVAs check based on DMA mask",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/1717/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/46131/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/46131/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 345924CA6;\n\tFri,  5 Oct 2018 14:46:58 +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 20AAF3195\n\tfor <dev@dpdk.org>; Fri,  5 Oct 2018 14:46:51 +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\tw95CjUD8008378 for <dev@dpdk.org>; Fri, 5 Oct 2018 13:45:30 +0100",
            "(from alucero@localhost)\n\tby netronome.com (8.14.4/8.14.4/Submit) id w95CjUbx008377\n\tfor dev@dpdk.org; Fri, 5 Oct 2018 13:45:30 +0100"
        ],
        "From": "Alejandro Lucero <alejandro.lucero@netronome.com>",
        "To": "dev@dpdk.org",
        "Date": "Fri,  5 Oct 2018 13:45:24 +0100",
        "Message-Id": "<1538743527-8285-4-git-send-email-alejandro.lucero@netronome.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "In-Reply-To": "<1538743527-8285-1-git-send-email-alejandro.lucero@netronome.com>",
        "References": "<1538743527-8285-1-git-send-email-alejandro.lucero@netronome.com>",
        "Subject": "[dpdk-dev] [PATCH v3 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>\nAcked-by: Anatoly Burakov <anatoly.burakov@intel.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": [
        "v3",
        "3/6"
    ]
}