Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314329
b: refs/heads/master
c: 60aa050
h: refs/heads/master
i:
  314327: 138a959
v: v3
  • Loading branch information
Merav Sicron authored and David S. Miller committed Jun 19, 2012
1 parent 33515c9 commit 8893762
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 15192a8cf8a8d16e0ff38a144c8a4630c94f9fd6
refs/heads/master: 60aa0509056616afe9d66cf0fcd290589395032c
13 changes: 3 additions & 10 deletions trunk/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -11813,13 +11813,6 @@ static int __devinit bnx2x_init_one(struct pci_dev *pdev,

max_non_def_sbs = bnx2x_get_num_non_def_sbs(pdev);

/* !!! FIXME !!!
* Do not allow the maximum SB count to grow above 16
* since Special CIDs starts from 16*BNX2X_MULTI_TX_COS=48.
* We will use the FP_SB_MAX_E1x macro for this matter.
*/
max_non_def_sbs = min_t(int, FP_SB_MAX_E1x, max_non_def_sbs);

WARN_ON(!max_non_def_sbs);

/* Maximum number of RSS queues: one IGU SB goes to CNIC */
Expand All @@ -11841,9 +11834,6 @@ static int __devinit bnx2x_init_one(struct pci_dev *pdev,

bp = netdev_priv(dev);

BNX2X_DEV_INFO("Allocated netdev with %d tx and %d rx queues\n",
tx_count, rx_count);

bp->igu_sb_cnt = max_non_def_sbs;
bp->msg_enable = debug;
pci_set_drvdata(pdev, dev);
Expand All @@ -11856,6 +11846,9 @@ static int __devinit bnx2x_init_one(struct pci_dev *pdev,

BNX2X_DEV_INFO("max_non_def_sbs %d\n", max_non_def_sbs);

BNX2X_DEV_INFO("Allocated netdev with %d tx and %d rx queues\n",
tx_count, rx_count);

rc = bnx2x_init_bp(bp);
if (rc)
goto init_one_exit;
Expand Down

0 comments on commit 8893762

Please sign in to comment.