Show a patch.

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

{
    "id": 44051,
    "url": "http://patches.dpdk.org/api/patches/44051/",
    "web_url": "http://patches.dpdk.org/patch/44051/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<1535642492-21831-5-git-send-email-alejandro.lucero@netronome.com>",
    "date": "2018-08-30T15:21:31",
    "name": "[4/5] net/nfp: check hugepages IOVAs based on DMA mask",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": true,
    "hash": "5924721db484dc0b740eccc3dc82611e7a2514f6",
    "submitter": {
        "id": 270,
        "url": "http://patches.dpdk.org/api/people/270/",
        "name": "Alejandro Lucero",
        "email": "alejandro.lucero@netronome.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/patch/44051/mbox/",
    "series": [
        {
            "id": 1117,
            "url": "http://patches.dpdk.org/api/series/1117/",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1117",
            "date": "2018-08-30T15:21:27",
            "name": "use IOVAs check based on DMA mask",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/1117/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/44051/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/44051/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "In-Reply-To": "<1535642492-21831-1-git-send-email-alejandro.lucero@netronome.com>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Mailer": "git-send-email 1.9.1",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E79765942;\n\tThu, 30 Aug 2018 17:22:37 +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 66EE94CBB;\n\tThu, 30 Aug 2018 17:22:28 +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\tw7UFLZ1D021923; Thu, 30 Aug 2018 16:21:35 +0100",
            "(from alucero@localhost)\n\tby netronome.com (8.14.4/8.14.4/Submit) id w7UFLZF9021922;\n\tThu, 30 Aug 2018 16:21:35 +0100"
        ],
        "References": "<1535642492-21831-1-git-send-email-alejandro.lucero@netronome.com>",
        "Delivered-To": "patchwork@dpdk.org",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<1535642492-21831-5-git-send-email-alejandro.lucero@netronome.com>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Precedence": "list",
        "From": "Alejandro Lucero <alejandro.lucero@netronome.com>",
        "X-Original-To": "patchwork@dpdk.org",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@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>",
        "To": "dev@dpdk.org",
        "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>",
        "Date": "Thu, 30 Aug 2018 16:21:31 +0100",
        "Cc": "stable@dpdk.org",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH 4/5] net/nfp: check hugepages IOVAs based on DMA\n\tmask"
    },
    "content": "NFP devices can not handle DMA addresses requiring more than\n40 bits. This patch uses rte_dev_check_dma_mask with 40 bits\nand avoids device initialization if memory out of NFP range.\n\nSigned-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>\n---\n drivers/net/nfp/nfp_net.c | 8 ++++++++\n 1 file changed, 8 insertions(+)",
    "diff": "diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c\nindex 6e5e305..aedca31 100644\n--- a/drivers/net/nfp/nfp_net.c\n+++ b/drivers/net/nfp/nfp_net.c\n@@ -2688,6 +2688,14 @@ uint32_t nfp_net_txq_full(struct nfp_net_txq *txq)\n \n \tpci_dev = RTE_ETH_DEV_TO_PCI(eth_dev);\n \n+\t/* NFP can not handle DMA addresses requiring more than 40 bits */\n+\tif (rte_eal_check_dma_mask(40) < 0) {\n+\t\tRTE_LOG(INFO, PMD, \"device %s can not be used:\",\n+\t\t\t\t   pci_dev->device.name);\n+\t\tRTE_LOG(INFO, PMD, \"\\trestricted dma mask to 40 bits!\\n\");\n+\t\treturn -ENODEV;\n+\t};\n+\n \tif ((pci_dev->id.device_id == PCI_DEVICE_ID_NFP4000_PF_NIC) ||\n \t    (pci_dev->id.device_id == PCI_DEVICE_ID_NFP6000_PF_NIC)) {\n \t\tport = get_pf_port_number(eth_dev->data->name);\n",
    "prefixes": [
        "4/5"
    ]
}