Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/716293/?format=api
{ "id": 716293, "url": "http://patchwork.ozlabs.org/api/patches/716293/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20170117163540.5423.43007.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": "<20170117163540.5423.43007.stgit@localhost.localdomain>", "list_archive_url": null, "date": "2017-01-17T16:35:44", "name": "[next,v2,02/11] ixgbe: Only DMA sync frame length", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "e5ae05fb463d2b7cf5226d2de0d9c93a264b54a2", "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/20170117163540.5423.43007.stgit@localhost.localdomain/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/716293/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/716293/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 3v2whg6jGRz9ssP\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 18 Jan 2017 03:35:59 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 19D4588FC2;\n\tTue, 17 Jan 2017 16:35:58 +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 9F5BCbUNy3ls; Tue, 17 Jan 2017 16:35:56 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 63D7988ED4;\n\tTue, 17 Jan 2017 16:35:56 +0000 (UTC)", "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id F3A311C0306\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 17 Jan 2017 16:35:54 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id EC74A1FCFE\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 17 Jan 2017 16:35:48 +0000 (UTC)", "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id mRqTlswgpfce for <intel-wired-lan@lists.osuosl.org>;\n\tTue, 17 Jan 2017 16:35:47 +0000 (UTC)", "from mail-pf0-f196.google.com (mail-pf0-f196.google.com\n\t[209.85.192.196])\n\tby silver.osuosl.org (Postfix) with ESMTPS id D3FC22546F\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 17 Jan 2017 16:35:46 +0000 (UTC)", "by mail-pf0-f196.google.com with SMTP id y143so16587628pfb.1\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 17 Jan 2017 08:35:46 -0800 (PST)", "from localhost.localdomain ([2001:470:b:9c3:9e5c:8eff:fe4f:f2d0])\n\tby smtp.gmail.com with ESMTPSA id\n\tb69sm47822954pfd.90.2017.01.17.08.35.45\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 17 Jan 2017 08:35:45 -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=\"buC7+q5c\"; 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=MTwG/7VJa7/jWmWbOUoT33r60HolBcio0/a/+mS5Zac=;\n\tb=buC7+q5cmOpfyk/nDofPkXuew054jIMZIxRUL6FHB0yUrUzQXJ5h+/w8EEuBvahV9p\n\tjnXEu0gEM3IXx9LvJ3BnCuu7WHwgY+qNGxZA/JtKpdkQJtFCWQ9WhDfPJr946dodB8ij\n\t+Ose8RJEo7N1tHBT5hziHs4BT3bQpWWlxsyvAWSaQ22mYUN/0Zv+1XiS5XhGl58FOJWp\n\tSRVieTmy0VWdTnqPlqKe29vBO/t/ZlOAsjIjjgoQecDvJ72PurKN0vHcGqJLwrHsNvlP\n\t8u+4VuY3bcfgSxmIb/WKSkJQ4kIdSyy/JtPrQ0pg2nhG00RgJX3XnZa/yV4Rv9paievs\n\tuFMQ==", "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=MTwG/7VJa7/jWmWbOUoT33r60HolBcio0/a/+mS5Zac=;\n\tb=t7JhEUBGcrxn87XR++qhcxl228s/Qge2Hxftqe9760QiyTpd6whiKCKsxeROMFHQJa\n\th+zHNTIxWAA0sYhB5sFPfqIRf3hdMfZ2gGjj5CmJuM41Y/9O0nRb4YsQUNEd85gehhek\n\tHrt1kRQy44yMu6EUeNtsL4cdmLuOtkdksGL2gfHEL6BpIDGnRH+DW4wYluljUW5rF3vv\n\tzRkTvtxd8pFiyB2mhXIDmpAGTGUDx+NoZd29Tf8ixHKDqCWxx190naylhcg/xUZW9et6\n\tnf5/XF2llDY0AeVStmK4a2ljBzFkkajwLrhfnmQIa/oMNk063l860kk2REeNNFsqvYNH\n\tlrYg==", "X-Gm-Message-State": "AIkVDXIuwgzkpi8KZhNLERx3mX7aeMoOFn0wJKUniliR5cEsBDmtP489J+eVvF2eABW5YQ==", "X-Received": "by 10.84.128.34 with SMTP id 31mr46021346pla.17.1484670945951;\n\tTue, 17 Jan 2017 08:35:45 -0800 (PST)", "From": "Alexander Duyck <alexander.duyck@gmail.com>", "To": "intel-wired-lan@lists.osuosl.org, jeffrey.t.kirsher@intel.com", "Date": "Tue, 17 Jan 2017 08:35:44 -0800", "Message-ID": "<20170117163540.5423.43007.stgit@localhost.localdomain>", "In-Reply-To": "<20170117163401.5423.37993.stgit@localhost.localdomain>", "References": "<20170117163401.5423.37993.stgit@localhost.localdomain>", "User-Agent": "StGit/0.17.1-dirty", "MIME-Version": "1.0", "Subject": "[Intel-wired-lan] [next PATCH v2 02/11] ixgbe: Only DMA sync frame\n\tlength", "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\nOn some platforms, syncing a buffer for DMA is expensive. Rather than\nsync the whole 2K receive buffer, only synchronise the length of the\nframe, which will typically be the MTU, or a much smaller TCP ACK.\n\nSigned-off-by: Alexander Duyck <alexander.h.duyck@intel.com>\n---\n drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 10 +++++-----\n 1 file changed, 5 insertions(+), 5 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\nindex 452a407013ef..cfc097d07661 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\n@@ -1858,7 +1858,7 @@ static void ixgbe_dma_sync_frag(struct ixgbe_ring *rx_ring,\n \t\tdma_sync_single_range_for_cpu(rx_ring->dev,\n \t\t\t\t\t IXGBE_CB(skb)->dma,\n \t\t\t\t\t frag->page_offset,\n-\t\t\t\t\t ixgbe_rx_bufsz(rx_ring),\n+\t\t\t\t\t skb_frag_size(frag),\n \t\t\t\t\t DMA_FROM_DEVICE);\n \t}\n \tIXGBE_CB(skb)->dma = 0;\n@@ -2000,12 +2000,11 @@ static bool ixgbe_can_reuse_rx_page(struct ixgbe_ring *rx_ring,\n **/\n static bool ixgbe_add_rx_frag(struct ixgbe_ring *rx_ring,\n \t\t\t struct ixgbe_rx_buffer *rx_buffer,\n-\t\t\t union ixgbe_adv_rx_desc *rx_desc,\n+\t\t\t unsigned int size,\n \t\t\t struct 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 = ixgbe_rx_bufsz(rx_ring);\n #else\n@@ -2037,6 +2036,7 @@ static bool ixgbe_add_rx_frag(struct ixgbe_ring *rx_ring,\n static struct sk_buff *ixgbe_fetch_rx_buffer(struct ixgbe_ring *rx_ring,\n \t\t\t\t\t union ixgbe_adv_rx_desc *rx_desc)\n {\n+\tunsigned int size = le16_to_cpu(rx_desc->wb.upper.length);\n \tstruct ixgbe_rx_buffer *rx_buffer;\n \tstruct sk_buff *skb;\n \tstruct page *page;\n@@ -2091,14 +2091,14 @@ static struct sk_buff *ixgbe_fetch_rx_buffer(struct ixgbe_ring *rx_ring,\n \t\tdma_sync_single_range_for_cpu(rx_ring->dev,\n \t\t\t\t\t rx_buffer->dma,\n \t\t\t\t\t rx_buffer->page_offset,\n-\t\t\t\t\t ixgbe_rx_bufsz(rx_ring),\n+\t\t\t\t\t size,\n \t\t\t\t\t DMA_FROM_DEVICE);\n \n \t\trx_buffer->skb = NULL;\n \t}\n \n \t/* pull page into skb */\n-\tif (ixgbe_add_rx_frag(rx_ring, rx_buffer, rx_desc, skb)) {\n+\tif (ixgbe_add_rx_frag(rx_ring, rx_buffer, size, skb)) {\n \t\t/* hand second half of page back to the ring */\n \t\tixgbe_reuse_rx_page(rx_ring, rx_buffer);\n \t} else if (IXGBE_CB(skb)->dma == rx_buffer->dma) {\n", "prefixes": [ "next", "v2", "02/11" ] }