get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 706701,
    "url": "http://patchwork.ozlabs.org/api/patches/706701/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20161217134000.31640-2-bjorn.topel@gmail.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": "<20161217134000.31640-2-bjorn.topel@gmail.com>",
    "list_archive_url": null,
    "date": "2016-12-17T13:39:57",
    "name": "[v4,1/4] i40e: Sync DMA region prior skbuff allocation",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "cfbbac1a28ab0134dbb4f90628e9100c345827bd",
    "submitter": {
        "id": 70569,
        "url": "http://patchwork.ozlabs.org/api/people/70569/?format=api",
        "name": "Björn Töpel",
        "email": "bjorn.topel@gmail.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/20161217134000.31640-2-bjorn.topel@gmail.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/706701/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/706701/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@lists.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"
        ],
        "Received": [
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\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 3tgpGH5vgTz9t25\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 18 Dec 2016 00:40:23 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 4F2E384D91;\n\tSat, 17 Dec 2016 13:40:22 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id jAdGVE1qygWr; Sat, 17 Dec 2016 13:40:17 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 8533184D21;\n\tSat, 17 Dec 2016 13:40:16 +0000 (UTC)",
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 33F7A1C0F9B\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tSat, 17 Dec 2016 13:40:14 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 3014C85BF0\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tSat, 17 Dec 2016 13:40:14 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id ec2iAOZ7j5er for <intel-wired-lan@lists.osuosl.org>;\n\tSat, 17 Dec 2016 13:40:13 +0000 (UTC)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id C9DEC85A7C\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tSat, 17 Dec 2016 13:40:13 +0000 (UTC)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga104.fm.intel.com with ESMTP; 17 Dec 2016 05:40:13 -0800",
            "from jabolger-mobl1.ger.corp.intel.com (HELO\n\tbtopel-mobl1.intel.com) ([10.252.31.3])\n\tby fmsmga001.fm.intel.com with ESMTP; 17 Dec 2016 05:40:11 -0800"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "from auto-whitelisted by SQLgrey-1.7.6",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos; i=\"5.33,363,1477983600\"; d=\"scan'208\";\n\ta=\"1083168111\"",
        "From": "=?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= <bjorn.topel@gmail.com>",
        "To": "jeffrey.t.kirsher@intel.com,\n\tintel-wired-lan@lists.osuosl.org",
        "Date": "Sat, 17 Dec 2016 14:39:57 +0100",
        "Message-Id": "<20161217134000.31640-2-bjorn.topel@gmail.com>",
        "X-Mailer": "git-send-email 2.9.3",
        "In-Reply-To": "<20161217134000.31640-1-bjorn.topel@gmail.com>",
        "References": "<20161217134000.31640-1-bjorn.topel@gmail.com>",
        "MIME-Version": "1.0",
        "Cc": "daniel@iogearbox.net,\n\t=?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= <bjorn.topel@intel.com>,\n\tmagnus.karlsson@intel.com",
        "Subject": "[Intel-wired-lan] [PATCH v4 1/4] i40e: Sync DMA region prior skbuff\n\tallocation",
        "X-BeenThere": "intel-wired-lan@lists.osuosl.org",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.lists.osuosl.org>",
        "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>",
        "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "intel-wired-lan-bounces@lists.osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>"
    },
    "content": "From: Björn Töpel <bjorn.topel@intel.com>\n\nThis patch prepares i40e_fetch_rx_buffer() for upcoming XDP support,\nwhere there's a need to access the device buffers prior skbuff\nallocation.\n\nSigned-off-by: Björn Töpel <bjorn.topel@intel.com>\n---\n drivers/net/ethernet/intel/i40e/i40e_txrx.c | 14 +++++++-------\n 1 file changed, 7 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_txrx.c b/drivers/net/ethernet/intel/i40e/i40e_txrx.c\nindex 9de05a0e8201..8bdc95c9e9b7 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_txrx.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_txrx.c\n@@ -1646,6 +1646,13 @@ struct sk_buff *i40e_fetch_rx_buffer(struct i40e_ring *rx_ring,\n \tpage = rx_buffer->page;\n \tprefetchw(page);\n \n+\t/* we are reusing so sync this buffer for CPU use */\n+\tdma_sync_single_range_for_cpu(rx_ring->dev,\n+\t\t\t\t      rx_buffer->dma,\n+\t\t\t\t      rx_buffer->page_offset,\n+\t\t\t\t      size,\n+\t\t\t\t      DMA_FROM_DEVICE);\n+\n \tif (likely(!skb)) {\n \t\tvoid *page_addr = page_address(page) + rx_buffer->page_offset;\n \n@@ -1671,13 +1678,6 @@ struct sk_buff *i40e_fetch_rx_buffer(struct i40e_ring *rx_ring,\n \t\tprefetchw(skb->data);\n \t}\n \n-\t/* we are reusing so sync this buffer for CPU use */\n-\tdma_sync_single_range_for_cpu(rx_ring->dev,\n-\t\t\t\t      rx_buffer->dma,\n-\t\t\t\t      rx_buffer->page_offset,\n-\t\t\t\t      size,\n-\t\t\t\t      DMA_FROM_DEVICE);\n-\n \t/* pull page into skb */\n \tif (i40e_add_rx_frag(rx_ring, rx_buffer, size, skb)) {\n \t\t/* hand second half of page back to the ring */\n",
    "prefixes": [
        "v4",
        "1/4"
    ]
}