Commit 42c5b9bd authored by Jeb J. Cramer's avatar Jeb J. Cramer Committed by Jeff Garzik

e1000 2/10:

* Changed flow control defaults to minimize packet drops 
parent 3cb9f9fd
...@@ -95,6 +95,15 @@ struct e1000_adapter; ...@@ -95,6 +95,15 @@ struct e1000_adapter;
#define E1000_RXBUFFER_8192 8192 #define E1000_RXBUFFER_8192 8192
#define E1000_RXBUFFER_16384 16384 #define E1000_RXBUFFER_16384 16384
/* Flow Control High-Watermark: 43464 bytes */
#define E1000_FC_HIGH_THRESH 0xA9C8
/* Flow Control Low-Watermark: 43456 bytes */
#define E1000_FC_LOW_THRESH 0xA9C0
/* Flow Control Pause Time: 858 usec */
#define E1000_FC_PAUSE_TIME 0x0680
/* How many Tx Descriptors do we need to call netif_wake_queue ? */ /* How many Tx Descriptors do we need to call netif_wake_queue ? */
#define E1000_TX_QUEUE_WAKE 16 #define E1000_TX_QUEUE_WAKE 16
/* How many Rx Buffers do we bundle into one write to the hardware ? */ /* How many Rx Buffers do we bundle into one write to the hardware ? */
......
...@@ -591,9 +591,9 @@ e1000_sw_init(struct e1000_adapter *adapter) ...@@ -591,9 +591,9 @@ e1000_sw_init(struct e1000_adapter *adapter)
/* flow control settings */ /* flow control settings */
hw->fc_high_water = FC_DEFAULT_HI_THRESH; hw->fc_high_water = E1000_FC_HIGH_THRESH;
hw->fc_low_water = FC_DEFAULT_LO_THRESH; hw->fc_low_water = E1000_FC_LOW_THRESH;
hw->fc_pause_time = FC_DEFAULT_TX_TIMER; hw->fc_pause_time = E1000_FC_PAUSE_TIME;
hw->fc_send_xon = 1; hw->fc_send_xon = 1;
/* Media type - copper or fiber */ /* Media type - copper or fiber */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment