diff options
author | Nick Nunley <nicholasx.d.nunley@intel.com> | 2010-02-16 20:05:56 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-17 16:21:39 -0500 |
commit | 58fd62f525e1182fbb2f7566aecb4545720d9aad (patch) | |
tree | 50221de0473a8ebe0bf5af0fef56e370aa7c1243 | |
parent | fe0592b4be0ce362e87cefd4f6dbf12cb5704d1b (diff) |
igb: change descriptor control thresholds
This change simplifies the code by setting RX_PTHRESH to 8 for
all devices, as it was unlikely that there was any advantage to
set it at 16 for earlier cards. Additionally TX_WTHRESH is
set to 1 for the 82576 NIC to improve performance by enabling
a minimal amount of write combining when writing back descriptors.
Signed-off-by: Nicholas Nunley <nicholasx.d.nunley@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/igb/igb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/igb/igb.h b/drivers/net/igb/igb.h index 7854b66648c7..a1775705b24c 100644 --- a/drivers/net/igb/igb.h +++ b/drivers/net/igb/igb.h | |||
@@ -95,13 +95,13 @@ struct vf_data_storage { | |||
95 | * descriptors until either it has this many to write back, or the | 95 | * descriptors until either it has this many to write back, or the |
96 | * ITR timer expires. | 96 | * ITR timer expires. |
97 | */ | 97 | */ |
98 | #define IGB_RX_PTHRESH (hw->mac.type <= e1000_82576 ? 16 : 8) | 98 | #define IGB_RX_PTHRESH 8 |
99 | #define IGB_RX_HTHRESH 8 | 99 | #define IGB_RX_HTHRESH 8 |
100 | #define IGB_RX_WTHRESH 1 | 100 | #define IGB_RX_WTHRESH 1 |
101 | #define IGB_TX_PTHRESH 8 | 101 | #define IGB_TX_PTHRESH 8 |
102 | #define IGB_TX_HTHRESH 1 | 102 | #define IGB_TX_HTHRESH 1 |
103 | #define IGB_TX_WTHRESH ((hw->mac.type == e1000_82576 && \ | 103 | #define IGB_TX_WTHRESH ((hw->mac.type == e1000_82576 && \ |
104 | adapter->msix_entries) ? 0 : 16) | 104 | adapter->msix_entries) ? 1 : 16) |
105 | 105 | ||
106 | /* this is the size past which hardware will drop packets when setting LPE=0 */ | 106 | /* this is the size past which hardware will drop packets when setting LPE=0 */ |
107 | #define MAXIMUM_ETHERNET_VLAN_SIZE 1522 | 107 | #define MAXIMUM_ETHERNET_VLAN_SIZE 1522 |