Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214794
b: refs/heads/master
c: 2ddaad3
h: refs/heads/master
v: v3
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Sep 28, 2010
1 parent f6f07e7 commit 0b5dfac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 5df8dbd7e517b581e0b8cbd72a99da17914a20b0
refs/heads/master: 2ddaad397c47de012dfb956b0c05540da1a0dde5
9 changes: 7 additions & 2 deletions trunk/drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -8821,7 +8821,12 @@ static bool tg3_enable_msix(struct tg3 *tp)
for (i = 0; i < tp->irq_max; i++)
tp->napi[i].irq_vec = msix_ent[i].vector;

tp->dev->real_num_tx_queues = 1;
netif_set_real_num_tx_queues(tp->dev, 1);
rc = tp->irq_cnt > 1 ? tp->irq_cnt - 1 : 1;
if (netif_set_real_num_rx_queues(tp->dev, rc)) {
pci_disable_msix(tp->pdev);
return false;
}
if (tp->irq_cnt > 1)
tp->tg3_flags3 |= TG3_FLG3_ENABLE_RSS;

Expand Down Expand Up @@ -8856,7 +8861,7 @@ static void tg3_ints_init(struct tg3 *tp)
if (!(tp->tg3_flags2 & TG3_FLG2_USING_MSIX)) {
tp->irq_cnt = 1;
tp->napi[0].irq_vec = tp->pdev->irq;
tp->dev->real_num_tx_queues = 1;
netif_set_real_num_tx_queues(tp->dev, 1);
}
}

Expand Down

0 comments on commit 0b5dfac

Please sign in to comment.