aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/igb.h
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2009-10-27 11:50:29 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-28 04:20:20 -0400
commit85b430b47736d1f59e8f9efb0e47bc46aeb2b01d (patch)
tree24d97f367a97c9b863950bb1d929e28a4d597d97 /drivers/net/igb/igb.h
parent7d95b7170eca3f95bad939fc9eb365b823c05e39 (diff)
igb: move the tx and rx ring specific config into seperate functions
This change makes the tx and rx config a bit cleaner by breaking out the ring specific configuration from the generic rx and tx configuration. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb/igb.h')
-rw-r--r--drivers/net/igb/igb.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/igb/igb.h b/drivers/net/igb/igb.h
index 044ba02211cd..1675f6a9ef2f 100644
--- a/drivers/net/igb/igb.h
+++ b/drivers/net/igb/igb.h
@@ -87,9 +87,13 @@ struct vf_data_storage {
87 * descriptors until either it has this many to write back, or the 87 * descriptors until either it has this many to write back, or the
88 * ITR timer expires. 88 * ITR timer expires.
89 */ 89 */
90#define IGB_RX_PTHRESH 16 90#define IGB_RX_PTHRESH (hw->mac.type <= e1000_82576 ? 16 : 8)
91#define IGB_RX_HTHRESH 8 91#define IGB_RX_HTHRESH 8
92#define IGB_RX_WTHRESH 1 92#define IGB_RX_WTHRESH 1
93#define IGB_TX_PTHRESH 8
94#define IGB_TX_HTHRESH 1
95#define IGB_TX_WTHRESH ((hw->mac.type == e1000_82576 && \
96 adapter->msix_entries) ? 0 : 16)
93 97
94/* this is the size past which hardware will drop packets when setting LPE=0 */ 98/* this is the size past which hardware will drop packets when setting LPE=0 */
95#define MAXIMUM_ETHERNET_VLAN_SIZE 1522 99#define MAXIMUM_ETHERNET_VLAN_SIZE 1522