diff options
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r-- | drivers/net/bnx2.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index 57d3293c65b..74580bb175f 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -416,6 +416,9 @@ struct cnic_eth_dev *bnx2_cnic_probe(struct net_device *dev) | |||
416 | struct bnx2 *bp = netdev_priv(dev); | 416 | struct bnx2 *bp = netdev_priv(dev); |
417 | struct cnic_eth_dev *cp = &bp->cnic_eth_dev; | 417 | struct cnic_eth_dev *cp = &bp->cnic_eth_dev; |
418 | 418 | ||
419 | if (!cp->max_iscsi_conn) | ||
420 | return NULL; | ||
421 | |||
419 | cp->drv_owner = THIS_MODULE; | 422 | cp->drv_owner = THIS_MODULE; |
420 | cp->chip_id = bp->chip_id; | 423 | cp->chip_id = bp->chip_id; |
421 | cp->pdev = bp->pdev; | 424 | cp->pdev = bp->pdev; |
@@ -8177,6 +8180,10 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev) | |||
8177 | bp->timer.data = (unsigned long) bp; | 8180 | bp->timer.data = (unsigned long) bp; |
8178 | bp->timer.function = bnx2_timer; | 8181 | bp->timer.function = bnx2_timer; |
8179 | 8182 | ||
8183 | #ifdef BCM_CNIC | ||
8184 | bp->cnic_eth_dev.max_iscsi_conn = | ||
8185 | bnx2_reg_rd_ind(bp, BNX2_FW_MAX_ISCSI_CONN); | ||
8186 | #endif | ||
8180 | pci_save_state(pdev); | 8187 | pci_save_state(pdev); |
8181 | 8188 | ||
8182 | return 0; | 8189 | return 0; |