Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/602593/?format=api
{ "id": 602593, "url": "http://patchwork.ozlabs.org/api/patches/602593/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1459163845-28035-7-git-send-email-harshitha.ramamurthy@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": "<1459163845-28035-7-git-send-email-harshitha.ramamurthy@intel.com>", "list_archive_url": null, "date": "2016-03-28T11:17:17", "name": "[next,S32,06/14] i40e/i40evf: Faster RX via avoiding fcoe", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "2a8e5d6b414620523e2ba16397e952455df0877b", "submitter": { "id": 68642, "url": "http://patchwork.ozlabs.org/api/people/68642/?format=api", "name": "Harshitha Ramamurthy", "email": "harshitha.ramamurthy@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/1459163845-28035-7-git-send-email-harshitha.ramamurthy@intel.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/602593/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/602593/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 fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ozlabs.org (Postfix) with ESMTP id 3qYkMS3Qw0z9s9k\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 29 Mar 2016 06:23:00 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 1A7708874D;\n\tMon, 28 Mar 2016 19:23:00 +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 mNO-RDR3p1yR; Mon, 28 Mar 2016 19:22:59 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 901AD889D0;\n\tMon, 28 Mar 2016 19:22:56 +0000 (UTC)", "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 566341BFC8C\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 28 Mar 2016 19:22:54 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 535CD8B587\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 28 Mar 2016 19:22:54 +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 c26IJSqIYSCg for <intel-wired-lan@lists.osuosl.org>;\n\tMon, 28 Mar 2016 19:22:51 +0000 (UTC)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 31ED38B7C4\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 28 Mar 2016 19:22:51 +0000 (UTC)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby fmsmga101.fm.intel.com with ESMTP; 28 Mar 2016 12:22:51 -0700", "from harshitha-linux1.jf.intel.com ([10.166.45.81])\n\tby orsmga002.jf.intel.com with ESMTP; 28 Mar 2016 12:22:51 -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.24,408,1455004800\"; d=\"scan'208\";a=\"943132223\"", "From": "Harshitha Ramamurthy <harshitha.ramamurthy@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Mon, 28 Mar 2016 04:17:17 -0700", "Message-Id": "<1459163845-28035-7-git-send-email-harshitha.ramamurthy@intel.com>", "X-Mailer": "git-send-email 2.4.3", "In-Reply-To": "<1459163845-28035-1-git-send-email-harshitha.ramamurthy@intel.com>", "References": "<1459163845-28035-1-git-send-email-harshitha.ramamurthy@intel.com>", "Subject": "[Intel-wired-lan] [next PATCH S32 06/14] i40e/i40evf: Faster RX via\n\tavoiding fcoe", "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: Jesse Brandeburg <jesse.brandeburg@intel.com>\n\nAs it turns out, calling into other files from hot path hurts\nperformance a lot. In this case the majority of the time we\ncall \"check fcoe\" and the packet is *not* fcoe, but this call\nwas taking 5% of our total cycles spent on receive.\n\nSigned-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>\nChange-ID: I080552c26e7060bc7b78504dc2763f6f0b3d8c76\n---\nTesting Hints: Make sure rx still works, and that\nperf top doesn't show i40e_handle_fcoe_status.\n \n drivers/net/ethernet/intel/i40e/i40e_txrx.c | 8 ++++++--\n drivers/net/ethernet/intel/i40e/i40e_txrx.h | 10 ++++++++++\n drivers/net/ethernet/intel/i40evf/i40e_txrx.c | 4 +++-\n drivers/net/ethernet/intel/i40evf/i40e_txrx.h | 10 ++++++++++\n 4 files changed, 29 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_txrx.c b/drivers/net/ethernet/intel/i40e/i40e_txrx.c\nindex f4e4d3d..29ffed2 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_txrx.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_txrx.c\n@@ -1703,7 +1703,9 @@ static int i40e_clean_rx_irq_ps(struct i40e_ring *rx_ring, const int budget)\n \t\t\t ? le16_to_cpu(rx_desc->wb.qword0.lo_dword.l2tag1)\n \t\t\t : 0;\n #ifdef I40E_FCOE\n-\t\tif (!i40e_fcoe_handle_offload(rx_ring, rx_desc, skb)) {\n+\t\tif (unlikely(\n+\t\t i40e_rx_is_fcoe(rx_ptype) &&\n+\t\t !i40e_fcoe_handle_offload(rx_ring, rx_desc, skb))) {\n \t\t\tdev_kfree_skb_any(skb);\n \t\t\tcontinue;\n \t\t}\n@@ -1834,7 +1836,9 @@ static int i40e_clean_rx_irq_1buf(struct i40e_ring *rx_ring, int budget)\n \t\t\t ? le16_to_cpu(rx_desc->wb.qword0.lo_dword.l2tag1)\n \t\t\t : 0;\n #ifdef I40E_FCOE\n-\t\tif (!i40e_fcoe_handle_offload(rx_ring, rx_desc, skb)) {\n+\t\tif (unlikely(\n+\t\t i40e_rx_is_fcoe(rx_ptype) &&\n+\t\t !i40e_fcoe_handle_offload(rx_ring, rx_desc, skb))) {\n \t\t\tdev_kfree_skb_any(skb);\n \t\t\tcontinue;\n \t\t}\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_txrx.h b/drivers/net/ethernet/intel/i40e/i40e_txrx.h\nindex 681e9bc..4b08d47 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_txrx.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e_txrx.h\n@@ -448,4 +448,14 @@ static inline bool i40e_chk_linearize(struct sk_buff *skb, int count)\n \n \treturn __i40e_chk_linearize(skb);\n }\n+\n+/**\n+ * i40e_rx_is_fcoe - returns true if the rx packet type is FCoE\n+ * @ptype: the packet type field from rx descriptor write-back\n+ **/\n+static inline bool i40e_rx_is_fcoe(u16 ptype)\n+{\n+\treturn (ptype >= I40E_RX_PTYPE_L2_FCOE_PAY3) &&\n+\t (ptype <= I40E_RX_PTYPE_L2_FCOE_VFT_FCOTHER);\n+}\n #endif /* _I40E_TXRX_H_ */\ndiff --git a/drivers/net/ethernet/intel/i40evf/i40e_txrx.c b/drivers/net/ethernet/intel/i40evf/i40e_txrx.c\nindex ec1f447..0c912a4 100644\n--- a/drivers/net/ethernet/intel/i40evf/i40e_txrx.c\n+++ b/drivers/net/ethernet/intel/i40evf/i40e_txrx.c\n@@ -1160,7 +1160,9 @@ static int i40e_clean_rx_irq_ps(struct i40e_ring *rx_ring, const int budget)\n \t\t\t ? le16_to_cpu(rx_desc->wb.qword0.lo_dword.l2tag1)\n \t\t\t : 0;\n #ifdef I40E_FCOE\n-\t\tif (!i40e_fcoe_handle_offload(rx_ring, rx_desc, skb)) {\n+\t\tif (unlikely(\n+\t\t i40e_rx_is_fcoe(rx_ptype) &&\n+\t\t !i40e_fcoe_handle_offload(rx_ring, rx_desc, skb))) {\n \t\t\tdev_kfree_skb_any(skb);\n \t\t\tcontinue;\n \t\t}\ndiff --git a/drivers/net/ethernet/intel/i40evf/i40e_txrx.h b/drivers/net/ethernet/intel/i40evf/i40e_txrx.h\nindex 6cf1169..92deb97 100644\n--- a/drivers/net/ethernet/intel/i40evf/i40e_txrx.h\n+++ b/drivers/net/ethernet/intel/i40evf/i40e_txrx.h\n@@ -430,4 +430,14 @@ static inline bool i40e_chk_linearize(struct sk_buff *skb, int count)\n \n \treturn __i40evf_chk_linearize(skb);\n }\n+\n+/**\n+ * i40e_rx_is_fcoe - returns true if the rx packet type is FCoE\n+ * @ptype: the packet type field from rx descriptor write-back\n+ **/\n+static inline bool i40e_rx_is_fcoe(u16 ptype)\n+{\n+\treturn (ptype >= I40E_RX_PTYPE_L2_FCOE_PAY3) &&\n+\t (ptype <= I40E_RX_PTYPE_L2_FCOE_VFT_FCOTHER);\n+}\n #endif /* _I40E_TXRX_H_ */\n", "prefixes": [ "next", "S32", "06/14" ] }