Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214781
b: refs/heads/master
c: 31b600b
h: refs/heads/master
i:
  214779: cb4583f
v: v3
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Sep 28, 2010
1 parent b9d2240 commit c5edde1
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 657d92fe6d693b9674264bc7546e664714955425
refs/heads/master: 31b600b5fcd101acffb261f87f60f27085ca6509
6 changes: 4 additions & 2 deletions trunk/drivers/net/bnx2x/bnx2x_cmn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1207,8 +1207,8 @@ static int bnx2x_set_num_queues(struct bnx2x *bp)
bp->num_queues = 1;
break;
}
bp->dev->real_num_tx_queues = bp->num_queues;
return rc;
netif_set_real_num_tx_queues(bp->dev, bp->num_queues);
return netif_set_real_num_rx_queues(bp->dev, bp->num_queues);
}

static void bnx2x_release_firmware(struct bnx2x *bp)
Expand Down Expand Up @@ -1240,6 +1240,8 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode)
bp->state = BNX2X_STATE_OPENING_WAIT4_LOAD;

rc = bnx2x_set_num_queues(bp);
if (rc)
return rc;

if (bnx2x_alloc_mem(bp)) {
bnx2x_free_irq(bp, true);
Expand Down

0 comments on commit c5edde1

Please sign in to comment.