get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 712007,
    "url": "http://patchwork.ozlabs.org/api/patches/712007/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20170106161043.2030.19954.stgit@localhost.localdomain/",
    "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": "<20170106161043.2030.19954.stgit@localhost.localdomain>",
    "list_archive_url": null,
    "date": "2017-01-06T16:10:43",
    "name": "[next,1/9] igb: Add support for DMA_ATTR_WEAK_ORDERING",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "651d981a7349c6193a7a70ed52cd57667525ea1b",
    "submitter": {
        "id": 252,
        "url": "http://patchwork.ozlabs.org/api/people/252/?format=api",
        "name": "Alexander Duyck",
        "email": "alexander.duyck@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/20170106161043.2030.19954.stgit@localhost.localdomain/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/712007/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/712007/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 3tw8n90yd4z9ryZ\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  7 Jan 2017 03:16:29 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 9C59D85C63;\n\tFri,  6 Jan 2017 16:16:27 +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 5lOSmfQQiaIO; Fri,  6 Jan 2017 16:16:27 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 010FE85A19;\n\tFri,  6 Jan 2017 16:16:27 +0000 (UTC)",
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id 650A41BFA57\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri,  6 Jan 2017 16:16:25 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 5ECBA88D1A\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri,  6 Jan 2017 16:16:25 +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 UlMnXIbphKAy for <intel-wired-lan@lists.osuosl.org>;\n\tFri,  6 Jan 2017 16:16:24 +0000 (UTC)",
            "from mail-pg0-f68.google.com (mail-pg0-f68.google.com\n\t[74.125.83.68])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id A418088CA7\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri,  6 Jan 2017 16:16:24 +0000 (UTC)",
            "by mail-pg0-f68.google.com with SMTP id 75so6210444pgf.3\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 06 Jan 2017 08:16:24 -0800 (PST)",
            "from localhost.localdomain ([2001:470:b:9c3:9e5c:8eff:fe4f:f2d0])\n\tby smtp.gmail.com with ESMTPSA id\n\t186sm161085036pfv.61.2017.01.06.08.10.43\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 06 Jan 2017 08:10:43 -0800 (PST)"
        ],
        "Authentication-Results": "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"P/f+yRqI\"; dkim-atps=neutral",
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=subject:from:to:date:message-id:in-reply-to:references:user-agent\n\t:mime-version:content-transfer-encoding;\n\tbh=3b1DoeOfJVDzbuCYfTeYhHtW3P0IfsjsTeoeKPMIdi8=;\n\tb=P/f+yRqIvBohSZLuXZSqK9LWTqwLSTkl+8i8KmEZDgWnIi5HWqvjSDCvrATR6IdK58\n\tfmFPcWCWkZ0QL/uBZNMLh+ae4SOnARbHZE4ZqbsYHbNeb6xqyi7UO/owBKfLlMv9xRRY\n\tW/iDF0uf4FNQdSDj1DguDPG64MCxGCPjedCTab+GN69oyelK9ul5KGPLBtBP4Yw6y7Mu\n\t67Ri/Gx6ODZCzVO0l3yBv3Xnb8FPqEn5Tu/ZFcIGoX9Cnp9myOPATdFtt+TEInPvthWE\n\tdaB4+4raLedu5S0kTz4AnnsYJejHIJfjd7lDr2FpKrxnALsIr7RSP2jYDZgdXbSzHuFu\n\t7sqA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:from:to:date:message-id:in-reply-to\n\t:references:user-agent:mime-version:content-transfer-encoding;\n\tbh=3b1DoeOfJVDzbuCYfTeYhHtW3P0IfsjsTeoeKPMIdi8=;\n\tb=RRVaVXy+Bq9O4KQDIVjkIvO0xs7M3ufMYDopgmLltYamyn9RVA22TlbdHUJ3BLfIwd\n\t82KBhihgcSCQTi9XgqPIABlTFvuUUMSvyDwwbYUiEBs9thPPyYSDn0jQP0PQ3PE2ijTx\n\tPD+zCpvIih8ZcMKzZwaaObDoYAaxhbVPU9OpcIt09QgRdr5M+sJVbjNG86M6Yf8v0Rm3\n\tFHMqQ326rSEnqkEMZ0pQ9qClKfZ9jykDI7SYq6kUVwJnkwhCOIoGi5uSsoMJ3rmmIdo7\n\t2FcQvjIVTl7rMNBaQPhJugGWbjJGur0GS0PHqvU8yM0oplBLM4uITMD9eobpw90MXrI4\n\tCWmQ==",
        "X-Gm-Message-State": "AIkVDXKhajaKzt2spPLm4lCtD8rQWaNf3ATp1Q/3yw0z6Q7Ou5jf4Pq0yicHFAOsxQxpeg==",
        "X-Received": "by 10.84.231.201 with SMTP id g9mr29355849pln.104.1483719044241; \n\tFri, 06 Jan 2017 08:10:44 -0800 (PST)",
        "From": "Alexander Duyck <alexander.duyck@gmail.com>",
        "To": "intel-wired-lan@lists.osuosl.org, jeffrey.t.kirsher@intel.com",
        "Date": "Fri, 06 Jan 2017 08:10:43 -0800",
        "Message-ID": "<20170106161043.2030.19954.stgit@localhost.localdomain>",
        "In-Reply-To": "<20170106160850.2030.39073.stgit@localhost.localdomain>",
        "References": "<20170106160850.2030.39073.stgit@localhost.localdomain>",
        "User-Agent": "StGit/0.17.1-dirty",
        "MIME-Version": "1.0",
        "Subject": "[Intel-wired-lan] [next PATCH 1/9] igb: Add support for\n\tDMA_ATTR_WEAK_ORDERING",
        "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=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@lists.osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>"
    },
    "content": "From: Alexander Duyck <alexander.h.duyck@intel.com>\n\nSince we are already using DMA attributes in igb for Rx there is no reason\nwhy we can't also apply DMA_ATTR_WEAK_ORDERING which is needed on some\nplatforms to improve performance.\n\nSigned-off-by: Alexander Duyck <alexander.h.duyck@intel.com>\n---\n drivers/net/ethernet/intel/igb/igb.h      |    3 +++\n drivers/net/ethernet/intel/igb/igb_main.c |    6 +++---\n 2 files changed, 6 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/igb/igb.h b/drivers/net/ethernet/intel/igb/igb.h\nindex acbc3abe2ddd..87c9fe9d6f18 100644\n--- a/drivers/net/ethernet/intel/igb/igb.h\n+++ b/drivers/net/ethernet/intel/igb/igb.h\n@@ -148,6 +148,9 @@ struct vf_data_storage {\n /* How many Rx Buffers do we bundle into one write to the hardware ? */\n #define IGB_RX_BUFFER_WRITE\t16 /* Must be power of 2 */\n \n+#define IGB_RX_DMA_ATTR \\\n+\t(DMA_ATTR_SKIP_CPU_SYNC | DMA_ATTR_WEAK_ORDERING)\n+\n #define AUTO_ALL_MODES\t\t0\n #define IGB_EEPROM_APME\t\t0x0400\n \ndiff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c\nindex cb08900c9cf2..eede6db6037c 100644\n--- a/drivers/net/ethernet/intel/igb/igb_main.c\n+++ b/drivers/net/ethernet/intel/igb/igb_main.c\n@@ -3963,7 +3963,7 @@ static void igb_clean_rx_ring(struct igb_ring *rx_ring)\n \t\t\t\t     buffer_info->dma,\n \t\t\t\t     PAGE_SIZE,\n \t\t\t\t     DMA_FROM_DEVICE,\n-\t\t\t\t     DMA_ATTR_SKIP_CPU_SYNC);\n+\t\t\t\t     IGB_RX_DMA_ATTR);\n \t\t__page_frag_cache_drain(buffer_info->page,\n \t\t\t\t\tbuffer_info->pagecnt_bias);\n \n@@ -6992,7 +6992,7 @@ static struct sk_buff *igb_fetch_rx_buffer(struct igb_ring *rx_ring,\n \t\t */\n \t\tdma_unmap_page_attrs(rx_ring->dev, rx_buffer->dma,\n \t\t\t\t     PAGE_SIZE, DMA_FROM_DEVICE,\n-\t\t\t\t     DMA_ATTR_SKIP_CPU_SYNC);\n+\t\t\t\t     IGB_RX_DMA_ATTR);\n \t\t__page_frag_cache_drain(page, rx_buffer->pagecnt_bias);\n \t}\n \n@@ -7252,7 +7252,7 @@ static bool igb_alloc_mapped_page(struct igb_ring *rx_ring,\n \n \t/* map page for use */\n \tdma = dma_map_page_attrs(rx_ring->dev, page, 0, PAGE_SIZE,\n-\t\t\t\t DMA_FROM_DEVICE, DMA_ATTR_SKIP_CPU_SYNC);\n+\t\t\t\t DMA_FROM_DEVICE, IGB_RX_DMA_ATTR);\n \n \t/* if mapping failed free memory back to system since\n \t * there isn't much point in holding memory we can't use\n",
    "prefixes": [
        "next",
        "1/9"
    ]
}