get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 847157,
    "url": "http://patchwork.ozlabs.org/api/patches/847157/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20171211183654.21524.84943.stgit@localhost6.localdomain6/",
    "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": "<20171211183654.21524.84943.stgit@localhost6.localdomain6>",
    "list_archive_url": null,
    "date": "2017-12-11T18:36:54",
    "name": "[2/9] ixgbevf: only DMA sync frame length",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "79e05d50a4065a680557ef847449cbb5e128b348",
    "submitter": {
        "id": 1670,
        "url": "http://patchwork.ozlabs.org/api/people/1670/?format=api",
        "name": "Tantilov, Emil S",
        "email": "emil.s.tantilov@intel.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/20171211183654.21524.84943.stgit@localhost6.localdomain6/mbox/",
    "series": [
        {
            "id": 17925,
            "url": "http://patchwork.ozlabs.org/api/series/17925/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=17925",
            "date": "2017-12-11T18:36:44",
            "name": "ixgbevf: update Rx/Tx code path for build_skb",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/17925/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/847157/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/847157/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.137; helo=fraxinus.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\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 3ywWm01t0Fz9s03\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Dec 2017 05:32:48 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 3236F87277;\n\tMon, 11 Dec 2017 18:32:46 +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 CkVMUqeUsRvW; Mon, 11 Dec 2017 18:32:45 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 9A14C87268;\n\tMon, 11 Dec 2017 18:32:45 +0000 (UTC)",
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id A21781BFA4B\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 11 Dec 2017 18:32:44 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 9E34A881C8\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 11 Dec 2017 18:32:44 +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 3pQ4I9Nmf5uB for <intel-wired-lan@lists.osuosl.org>;\n\tMon, 11 Dec 2017 18:32:44 +0000 (UTC)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id 1AEE5881C7\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 11 Dec 2017 18:32:44 +0000 (UTC)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t11 Dec 2017 10:32:43 -0800",
            "from estantil-desk3.jf.intel.com (HELO localhost6.localdomain6)\n\t([134.134.177.96])\n\tby orsmga003.jf.intel.com with ESMTP; 11 Dec 2017 10:32:43 -0800"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.45,392,1508828400\"; d=\"scan'208\";a=\"11446513\"",
        "From": "Emil Tantilov <emil.s.tantilov@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Mon, 11 Dec 2017 10:36:54 -0800",
        "Message-ID": "<20171211183654.21524.84943.stgit@localhost6.localdomain6>",
        "In-Reply-To": "<20171211183537.21524.10133.stgit@localhost6.localdomain6>",
        "References": "<20171211183537.21524.10133.stgit@localhost6.localdomain6>",
        "User-Agent": "StGit/0.17.1-17-ge4e0",
        "MIME-Version": "1.0",
        "Subject": "[Intel-wired-lan] [PATCH 2/9] ixgbevf: only DMA sync frame length",
        "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>",
        "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": "Based on commit 64f2525ca4e7 (\"igb: Only DMA sync frame length\")\n\nOn some architectures synching a buffer for DMA may be expensive.\nInstead of the entire 2K receive buffer only synchronize the length of\nthe frame, which will typically be the MTU or smaller.\n\nSigned-off-by: Emil Tantilov <emil.s.tantilov@intel.com>\n---\n drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c |    7 ++++---\n 1 file changed, 4 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c\nindex 7ffd429..0cc2688 100644\n--- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c\n+++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c\n@@ -803,12 +803,12 @@ static bool ixgbevf_can_reuse_rx_page(struct ixgbevf_rx_buffer *rx_buffer,\n  **/\n static bool ixgbevf_add_rx_frag(struct ixgbevf_ring *rx_ring,\n \t\t\t\tstruct ixgbevf_rx_buffer *rx_buffer,\n+\t\t\t\tu16 size,\n \t\t\t\tunion ixgbe_adv_rx_desc *rx_desc,\n \t\t\t\tstruct sk_buff *skb)\n {\n \tstruct page *page = rx_buffer->page;\n \tunsigned char *va = page_address(page) + rx_buffer->page_offset;\n-\tunsigned int size = le16_to_cpu(rx_desc->wb.upper.length);\n #if (PAGE_SIZE < 8192)\n \tunsigned int truesize = IXGBEVF_RX_BUFSZ;\n #else\n@@ -856,6 +856,7 @@ static struct sk_buff *ixgbevf_fetch_rx_buffer(struct ixgbevf_ring *rx_ring,\n {\n \tstruct ixgbevf_rx_buffer *rx_buffer;\n \tstruct page *page;\n+\tu16 size = le16_to_cpu(rx_desc->wb.upper.length);\n \n \trx_buffer = &rx_ring->rx_buffer_info[rx_ring->next_to_clean];\n \tpage = rx_buffer->page;\n@@ -890,11 +891,11 @@ static struct sk_buff *ixgbevf_fetch_rx_buffer(struct ixgbevf_ring *rx_ring,\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      IXGBEVF_RX_BUFSZ,\n+\t\t\t\t      size,\n \t\t\t\t      DMA_FROM_DEVICE);\n \n \t/* pull page into skb */\n-\tif (ixgbevf_add_rx_frag(rx_ring, rx_buffer, rx_desc, skb)) {\n+\tif (ixgbevf_add_rx_frag(rx_ring, rx_buffer, size, rx_desc, skb)) {\n \t\t/* hand second half of page back to the ring */\n \t\tixgbevf_reuse_rx_page(rx_ring, rx_buffer);\n \t} else {\n",
    "prefixes": [
        "2/9"
    ]
}