Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214527
b: refs/heads/master
c: 6fd45cb
h: refs/heads/master
i:
  214525: f8c843a
  214523: 4c3a7fc
  214519: b469dde
  214511: 25bf6da
  214495: a243835
  214463: fc850d6
  214399: 417877e
  214271: c037473
  214015: def8151
v: v3
  • Loading branch information
Matt Carlson authored and David S. Miller committed Sep 15, 2010
1 parent 1642b4c commit 28ce22c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 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: 2e9f7a7408d264f01d4477c564ef5c6b610cd10f
refs/heads/master: 6fd45cb814709767a1704b541aa91647b7f275cf
6 changes: 3 additions & 3 deletions trunk/drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -7564,7 +7564,7 @@ static void tg3_rings_reset(struct tg3 *tp)

/* Zero mailbox registers. */
if (tp->tg3_flags & TG3_FLAG_SUPPORT_MSIX) {
for (i = 1; i < TG3_IRQ_MAX_VECS; i++) {
for (i = 1; i < tp->irq_max; i++) {
tp->napi[i].tx_prod = 0;
tp->napi[i].tx_cons = 0;
if (tp->tg3_flags3 & TG3_FLG3_ENABLE_TSS)
Expand Down Expand Up @@ -9886,7 +9886,7 @@ static int tg3_set_ringparam(struct net_device *dev, struct ethtool_ringparam *e
tp->rx_pending = 63;
tp->rx_jumbo_pending = ering->rx_jumbo_pending;

for (i = 0; i < TG3_IRQ_MAX_VECS; i++)
for (i = 0; i < tp->irq_max; i++)
tp->napi[i].tx_pending = ering->tx_pending;

if (netif_running(dev)) {
Expand Down Expand Up @@ -14598,7 +14598,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
intmbx = MAILBOX_INTERRUPT_0 + TG3_64BIT_REG_LOW;
rcvmbx = MAILBOX_RCVRET_CON_IDX_0 + TG3_64BIT_REG_LOW;
sndmbx = MAILBOX_SNDHOST_PROD_IDX_0 + TG3_64BIT_REG_LOW;
for (i = 0; i < TG3_IRQ_MAX_VECS; i++) {
for (i = 0; i < tp->irq_max; i++) {
struct tg3_napi *tnapi = &tp->napi[i];

tnapi->tp = tp;
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/net/tg3.h
Original file line number Diff line number Diff line change
Expand Up @@ -2659,7 +2659,8 @@ struct tg3_rx_prodring_set {
dma_addr_t rx_jmb_mapping;
};

#define TG3_IRQ_MAX_VECS 5
#define TG3_IRQ_MAX_VECS_RSS 5
#define TG3_IRQ_MAX_VECS TG3_IRQ_MAX_VECS_RSS

struct tg3_napi {
struct napi_struct napi ____cacheline_aligned;
Expand Down

0 comments on commit 28ce22c

Please sign in to comment.