Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369301
b: refs/heads/master
c: 4e22766
h: refs/heads/master
i:
  369299: 2ddf5c7
v: v3
  • Loading branch information
Alexander Duyck authored and Jeff Kirsher committed Apr 18, 2013
1 parent c1a216f commit 0ce3c41
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b646c22edef1c350d26237a6f60d3a890ceedf6e
refs/heads/master: 4e22766758cb8c971c971f3d335b974aaeb235fa
11 changes: 11 additions & 0 deletions trunk/drivers/net/ethernet/intel/igb/igb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,17 @@ static int igb_alloc_q_vector(struct igb_adapter *adapter,
/* initialize pointer to rings */
ring = q_vector->ring;

/* intialize ITR */
if (rxr_count) {
/* rx or rx/tx vector */
if (!adapter->rx_itr_setting || adapter->rx_itr_setting > 3)
q_vector->itr_val = adapter->rx_itr_setting;
} else {
/* tx only vector */
if (!adapter->tx_itr_setting || adapter->tx_itr_setting > 3)
q_vector->itr_val = adapter->tx_itr_setting;
}

if (txr_count) {
/* assign generic ring traits */
ring->dev = &adapter->pdev->dev;
Expand Down

0 comments on commit 0ce3c41

Please sign in to comment.