diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2016-04-01 06:56:06 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2016-04-06 21:26:23 -0400 |
commit | 1f15d66712bb64e39fe2c23b1b32f68f9e1d4ee7 (patch) | |
tree | 78c5fda55e9acd9e39164c60d3624a50c8eb3664 /drivers/net/ethernet/intel/i40e/i40e_fcoe.c | |
parent | 84b079928a10559ebc6679e1e973a3ee5b20ba83 (diff) |
i40e/i40evf: Faster RX via avoiding FCoE
As it turns out, calling into other files from hot path hurts
performance a lot. In this case the majority of the time we
call "check FCoE" and the packet is *not* FCoE, but this call
was taking 5% of our total cycles spent on receive.
Change-ID: I080552c26e7060bc7b78504dc2763f6f0b3d8c76
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_fcoe.c')
-rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_fcoe.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_fcoe.c b/drivers/net/ethernet/intel/i40e/i40e_fcoe.c index 92d2208d13c7..58e6c1570335 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_fcoe.c +++ b/drivers/net/ethernet/intel/i40e/i40e_fcoe.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | * | 2 | * |
3 | * Intel Ethernet Controller XL710 Family Linux Driver | 3 | * Intel Ethernet Controller XL710 Family Linux Driver |
4 | * Copyright(c) 2013 - 2015 Intel Corporation. | 4 | * Copyright(c) 2013 - 2016 Intel Corporation. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -38,16 +38,6 @@ | |||
38 | #include "i40e_fcoe.h" | 38 | #include "i40e_fcoe.h" |
39 | 39 | ||
40 | /** | 40 | /** |
41 | * i40e_rx_is_fcoe - returns true if the rx packet type is FCoE | ||
42 | * @ptype: the packet type field from rx descriptor write-back | ||
43 | **/ | ||
44 | static inline bool i40e_rx_is_fcoe(u16 ptype) | ||
45 | { | ||
46 | return (ptype >= I40E_RX_PTYPE_L2_FCOE_PAY3) && | ||
47 | (ptype <= I40E_RX_PTYPE_L2_FCOE_VFT_FCOTHER); | ||
48 | } | ||
49 | |||
50 | /** | ||
51 | * i40e_fcoe_sof_is_class2 - returns true if this is a FC Class 2 SOF | 41 | * i40e_fcoe_sof_is_class2 - returns true if this is a FC Class 2 SOF |
52 | * @sof: the FCoE start of frame delimiter | 42 | * @sof: the FCoE start of frame delimiter |
53 | **/ | 43 | **/ |