Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315423
b: refs/heads/master
c: e2c28ce
h: refs/heads/master
i:
  315421: 6b71272
  315419: 79bab6c
  315415: 4d93653
  315407: 6411a11
  315391: 759ec0d
v: v3
  • Loading branch information
Alexander Duyck authored and Jeff Kirsher committed Jul 17, 2012
1 parent b2e2954 commit 9d54898
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 525a940c37c706155dc6726582d6430c148d9f8b
refs/heads/master: e2c28ce76001f01fefb255e0ce1fd6819a2ad1ea
2 changes: 0 additions & 2 deletions trunk/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ struct ixgbevf_adapter {

/* Interrupt Throttle Rate */
u32 itr_setting;
u16 eitr_low;
u16 eitr_high;

/* TX */
struct ixgbevf_ring *tx_ring; /* One per active queue */
Expand Down
12 changes: 4 additions & 8 deletions trunk/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,17 +704,17 @@ static u8 ixgbevf_update_itr(struct ixgbevf_adapter *adapter,

switch (itr_setting) {
case lowest_latency:
if (bytes_perint > adapter->eitr_low)
if (bytes_perint > 10)
retval = low_latency;
break;
case low_latency:
if (bytes_perint > adapter->eitr_high)
if (bytes_perint > 20)
retval = bulk_latency;
else if (bytes_perint <= adapter->eitr_low)
else if (bytes_perint <= 10)
retval = lowest_latency;
break;
case bulk_latency:
if (bytes_perint <= adapter->eitr_high)
if (bytes_perint <= 20)
retval = low_latency;
break;
}
Expand Down Expand Up @@ -2069,10 +2069,6 @@ static int __devinit ixgbevf_sw_init(struct ixgbevf_adapter *adapter)
adapter->eitr_param = 20000;
adapter->itr_setting = 1;

/* set defaults for eitr in MegaBytes */
adapter->eitr_low = 10;
adapter->eitr_high = 20;

/* set default ring sizes */
adapter->tx_ring_count = IXGBEVF_DEFAULT_TXD;
adapter->rx_ring_count = IXGBEVF_DEFAULT_RXD;
Expand Down

0 comments on commit 9d54898

Please sign in to comment.