Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/711999/?format=api
{ "id": 711999, "url": "http://patchwork.ozlabs.org/api/patches/711999/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20170106160639.1501.21842.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": "<20170106160639.1501.21842.stgit@localhost.localdomain>", "list_archive_url": null, "date": "2017-01-06T16:06:41", "name": "[next,02/11] ixgbe: Only DMA sync frame length", "commit_ref": null, "pull_url": null, "state": "superseded", "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/20170106160639.1501.21842.stgit@localhost.localdomain/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/711999/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/711999/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 3tw8hs0sYXz9sXx\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 7 Jan 2017 03:12:45 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 6825985A19;\n\tFri, 6 Jan 2017 16:12:43 +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 3nO1IpwSmGBr; Fri, 6 Jan 2017 16:12:42 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 8321F823C9;\n\tFri, 6 Jan 2017 16:12:42 +0000 (UTC)", "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id A63D81BFA57\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 6 Jan 2017 16:12:41 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id A0A6789433\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 6 Jan 2017 16:12:41 +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 n8RmOn96RDn3 for <intel-wired-lan@lists.osuosl.org>;\n\tFri, 6 Jan 2017 16:12:40 +0000 (UTC)", "from mail-pf0-f193.google.com (mail-pf0-f193.google.com\n\t[209.85.192.193])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id E1EF6823BC\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 6 Jan 2017 16:12:40 +0000 (UTC)", "by mail-pf0-f193.google.com with SMTP id b22so3776610pfd.3\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 06 Jan 2017 08:12:40 -0800 (PST)", "from localhost.localdomain ([2001:470:b:9c3:9e5c:8eff:fe4f:f2d0])\n\tby smtp.gmail.com with ESMTPSA id\n\t89sm160912327pfi.70.2017.01.06.08.06.41\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 06 Jan 2017 08:06:41 -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=\"uvW96Hoa\"; 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:cc:date:message-id:in-reply-to:references\n\t:user-agent:mime-version:content-transfer-encoding;\n\tbh=H6uS0md7Mcm3xH7T5RVJHBxExo79yEWE6qmZx2+bHy8=;\n\tb=uvW96Hoa17JDc1ADggvVLaTzIG+RSxFqsIDhEeFL9JHiyArhD3mXA68s85w2DPR7HA\n\t7shy1SmK+xjnipa4NQXO1p5zJ8UVApzkPtsLFXt9PxMEeCxmN7WwJzb0W8g0PeoHkxQd\n\tqWWEKxZcVjQWPaRUKuJ4qvRfsb1OSa1zor7fXk9PYFFHp4rhINjt05WzWpEJMgAUAXkW\n\tRfuIraN8Qv2wCy0fq31pgy0/PirjozKjx/Q7uV8BUBBlBS7thpNC/nxqcgBBqOyl+rv+\n\trpXzF9EvDMXLC2HlqolU/5jIKwonwDWGcHFFqmFOv9pOdPr/OppGqWyyBG8whWsWvM4c\n\tK/Ow==", "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:cc:date:message-id:in-reply-to\n\t:references:user-agent:mime-version:content-transfer-encoding;\n\tbh=H6uS0md7Mcm3xH7T5RVJHBxExo79yEWE6qmZx2+bHy8=;\n\tb=r/qcwkA2HWzbjum+ZQ04/GoJWoK9QO9IvHB2i0z9w/uOyZEvX46PKJ5OOX3ccAbLr9\n\t24bErZXKyqz2q2+89H9xn8RWtr649bFfypa27q42sy1m5br3hyrysuN3ldgaPvmW/F7/\n\tgFy288nXN2dKzK7Ec8QsKQpstfwKlnhJIDrAifXokEtJL0dvNWvig6fq6Tg11EXjOhdr\n\tQvOqGlWp3bKIXakILlqw4USHqeNb5EQPIDfG6u+/SNd+uEFYgVDf+Nz2EyrIQENx9tQ5\n\tmbEmFDaS5/Bi6drgKS33pmHd09Zpadnc3Fxnp0UdimLzNuc6UXWUxf2VfArKMli4pO0O\n\tsZLw==", "X-Gm-Message-State": "AIkVDXJkPpVnhj6ZJ3ouNN4LBsMOe4Qxls30RUTYQX1yeNFJ9L0Ft5c+MtfHjyK4mhHF6A==", "X-Received": "by 10.84.130.5 with SMTP id 5mr165760729plc.69.1483718802068;\n\tFri, 06 Jan 2017 08:06:42 -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:06:41 -0800", "Message-ID": "<20170106160639.1501.21842.stgit@localhost.localdomain>", "In-Reply-To": "<20170106155448.1501.31298.stgit@localhost.localdomain>", "References": "<20170106155448.1501.31298.stgit@localhost.localdomain>", "User-Agent": "StGit/0.17.1-dirty", "MIME-Version": "1.0", "Cc": "netdev@vger.kernel.org", "Subject": "[Intel-wired-lan] [next PATCH 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 e80d885af4d3..dbbf5223ace2 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@@ -1999,12 +1999,11 @@ static bool ixgbe_can_reuse_rx_page(struct ixgbe_rx_buffer *rx_buffer,\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@@ -2036,6 +2035,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@@ -2090,14 +2090,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", "02/11" ] }