get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 946377,
    "url": "http://patchwork.ozlabs.org/api/patches/946377/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20180719140407.15388-1-yuehaibing@huawei.com/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20180719140407.15388-1-yuehaibing@huawei.com>",
    "list_archive_url": null,
    "date": "2018-07-19T14:04:07",
    "name": "[net-next] ixgb: use dma_zalloc_coherent instead of allocator/memset",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "0886bbd15181eeebd377e29087959ef0513dfc6a",
    "submitter": {
        "id": 70610,
        "url": "http://patchwork.ozlabs.org/api/people/70610/?format=api",
        "name": "Yue Haibing",
        "email": "yuehaibing@huawei.com"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20180719140407.15388-1-yuehaibing@huawei.com/mbox/",
    "series": [
        {
            "id": 56470,
            "url": "http://patchwork.ozlabs.org/api/series/56470/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=56470",
            "date": "2018-07-19T14:04:07",
            "name": "[net-next] ixgb: use dma_zalloc_coherent instead of allocator/memset",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/56470/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/946377/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/946377/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.133; helo=hemlock.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=none (p=none dis=none) header.from=huawei.com"
        ],
        "Received": [
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 41WbPK61Zcz9s5c\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 20 Jul 2018 00:04:53 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 6955A8A143;\n\tThu, 19 Jul 2018 14:04:51 +0000 (UTC)",
            "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id yKlq412BHdC0; Thu, 19 Jul 2018 14:04:50 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 8C4048A133;\n\tThu, 19 Jul 2018 14:04:50 +0000 (UTC)",
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id 005021BFE0C\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 19 Jul 2018 14:04:49 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id F19588A133\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 19 Jul 2018 14:04:49 +0000 (UTC)",
            "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id G1E7vozLNab7 for <intel-wired-lan@lists.osuosl.org>;\n\tThu, 19 Jul 2018 14:04:48 +0000 (UTC)",
            "from huawei.com (szxga06-in.huawei.com [45.249.212.32])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id 866688A002\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 19 Jul 2018 14:04:48 +0000 (UTC)",
            "from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60])\n\tby Forcepoint Email with ESMTP id 67C30F90A22A6;\n\tThu, 19 Jul 2018 22:04:43 +0800 (CST)",
            "from localhost (10.177.31.96) by DGGEMS409-HUB.china.huawei.com\n\t(10.3.19.209) with Microsoft SMTP Server id 14.3.382.0;\n\tThu, 19 Jul 2018 22:04:39 +0800"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "From": "YueHaibing <yuehaibing@huawei.com>",
        "To": "<davem@davemloft.net>, <jeffrey.t.kirsher@intel.com>",
        "Date": "Thu, 19 Jul 2018 22:04:07 +0800",
        "Message-ID": "<20180719140407.15388-1-yuehaibing@huawei.com>",
        "X-Mailer": "git-send-email 2.10.2.windows.1",
        "MIME-Version": "1.0",
        "X-Originating-IP": "[10.177.31.96]",
        "X-CFilter-Loop": "Reflected",
        "Subject": "[Intel-wired-lan] [PATCH net-next] ixgb: use dma_zalloc_coherent\n\tinstead of allocator/memset",
        "X-BeenThere": "intel-wired-lan@osuosl.org",
        "X-Mailman-Version": "2.1.24",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>",
        "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>",
        "Cc": "netdev@vger.kernel.org, YueHaibing <yuehaibing@huawei.com>,\n\tintel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"
    },
    "content": "Use dma_zalloc_coherent instead of dma_alloc_coherent\nfollowed by memset 0.\n\nSigned-off-by: YueHaibing <yuehaibing@huawei.com>\n---\n drivers/net/ethernet/intel/ixgb/ixgb_main.c | 5 ++---\n 1 file changed, 2 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/ixgb/ixgb_main.c b/drivers/net/ethernet/intel/ixgb/ixgb_main.c\nindex 43664ad..d3e72d0 100644\n--- a/drivers/net/ethernet/intel/ixgb/ixgb_main.c\n+++ b/drivers/net/ethernet/intel/ixgb/ixgb_main.c\n@@ -771,14 +771,13 @@ ixgb_setup_rx_resources(struct ixgb_adapter *adapter)\n \trxdr->size = rxdr->count * sizeof(struct ixgb_rx_desc);\n \trxdr->size = ALIGN(rxdr->size, 4096);\n \n-\trxdr->desc = dma_alloc_coherent(&pdev->dev, rxdr->size, &rxdr->dma,\n-\t\t\t\t\tGFP_KERNEL);\n+\trxdr->desc = dma_zalloc_coherent(&pdev->dev, rxdr->size, &rxdr->dma,\n+\t\t\t\t\t GFP_KERNEL);\n \n \tif (!rxdr->desc) {\n \t\tvfree(rxdr->buffer_info);\n \t\treturn -ENOMEM;\n \t}\n-\tmemset(rxdr->desc, 0, rxdr->size);\n \n \trxdr->next_to_clean = 0;\n \trxdr->next_to_use = 0;\n",
    "prefixes": [
        "net-next"
    ]
}