Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/522521/?format=api
{ "id": 522521, "url": "http://patchwork.ozlabs.org/api/patches/522521/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1443123783-86802-1-git-send-email-catherine.sullivan@intel.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": "<1443123783-86802-1-git-send-email-catherine.sullivan@intel.com>", "list_archive_url": null, "date": "2015-09-24T19:43:02", "name": "[next,1/2] i40e: Move i40e_get_head into header file", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "99deaa01fd586875718b2247eedeced567508d19", "submitter": { "id": 13931, "url": "http://patchwork.ozlabs.org/api/people/13931/?format=api", "name": "Catherine Sullivan", "email": "catherine.sullivan@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/1443123783-86802-1-git-send-email-catherine.sullivan@intel.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/522521/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/522521/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 hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ozlabs.org (Postfix) with ESMTP id A32D5140775\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 25 Sep 2015 05:42:58 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id D1CC195601;\n\tThu, 24 Sep 2015 19:42:57 +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 67r91xR6v79V; Thu, 24 Sep 2015 19:42:57 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 5351F95411;\n\tThu, 24 Sep 2015 19:42:57 +0000 (UTC)", "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 5E34F1C15FC\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 24 Sep 2015 19:42:56 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 55F01915B3\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 24 Sep 2015 19:42:56 +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 LLl0l-oEvJGq for <intel-wired-lan@lists.osuosl.org>;\n\tThu, 24 Sep 2015 19:42:55 +0000 (UTC)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id B1595915A6\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 24 Sep 2015 19:42:55 +0000 (UTC)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby fmsmga103.fm.intel.com with ESMTP; 24 Sep 2015 12:42:55 -0700", "from catheri1-tigger.jf.intel.com ([134.134.176.92])\n\tby orsmga001.jf.intel.com with ESMTP; 24 Sep 2015 12:42:55 -0700" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.17,582,1437462000\"; d=\"scan'208\";a=\"776364211\"", "From": "Catherine Sullivan <catherine.sullivan@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Thu, 24 Sep 2015 15:43:02 -0400", "Message-Id": "<1443123783-86802-1-git-send-email-catherine.sullivan@intel.com>", "X-Mailer": "git-send-email 1.9.3", "Subject": "[Intel-wired-lan] [next PATCH 1/2] i40e: Move i40e_get_head into\n\theader file", "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>", "MIME-Version": "1.0", "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: Kiran Patil <kiran.patil@intel.com>\n\ni40e_get_head needs to be called in multiple files in a further patch,\nprepare by moving the function into a header file.\n\nSigned-off-by: Kiran Patil <kiran.patil@intel.com>\n---\n drivers/net/ethernet/intel/i40e/i40e_txrx.c | 13 -------------\n drivers/net/ethernet/intel/i40e/i40e_txrx.h | 14 ++++++++++++++\n 2 files changed, 14 insertions(+), 13 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_txrx.c b/drivers/net/ethernet/intel/i40e/i40e_txrx.c\nindex d51b8ed..6b78df3 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_txrx.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_txrx.c\n@@ -601,19 +601,6 @@ void i40e_free_tx_resources(struct i40e_ring *tx_ring)\n \t}\n }\n \n-/**\n- * i40e_get_head - Retrieve head from head writeback\n- * @tx_ring: tx ring to fetch head of\n- *\n- * Returns value of Tx ring head based on value stored\n- * in head write-back location\n- **/\n-static inline u32 i40e_get_head(struct i40e_ring *tx_ring)\n-{\n-\tvoid *head = (struct i40e_tx_desc *)tx_ring->desc + tx_ring->count;\n-\n-\treturn le32_to_cpu(*(volatile __le32 *)head);\n-}\n \n /**\n * i40e_get_tx_pending - how many tx descriptors not processed\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_txrx.h b/drivers/net/ethernet/intel/i40e/i40e_txrx.h\nindex 073464e..f67f8cf 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_txrx.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e_txrx.h\n@@ -328,4 +328,18 @@ int i40e_xmit_descriptor_count(struct sk_buff *skb, struct i40e_ring *tx_ring);\n int i40e_tx_prepare_vlan_flags(struct sk_buff *skb,\n \t\t\t struct i40e_ring *tx_ring, u32 *flags);\n #endif\n+\n+/**\n+ * i40e_get_head - Retrieve head from head writeback\n+ * @tx_ring: tx ring to fetch head of\n+ *\n+ * Returns value of Tx ring head based on value stored\n+ * in head write-back location\n+ **/\n+static inline u32 i40e_get_head(struct i40e_ring *tx_ring)\n+{\n+\tvoid *head = (struct i40e_tx_desc *)tx_ring->desc + tx_ring->count;\n+\n+\treturn le32_to_cpu(*(volatile __le32 *)head);\n+}\n #endif /* _I40E_TXRX_H_ */\n", "prefixes": [ "next", "1/2" ] }