Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255472
b: refs/heads/master
c: 7625eb2
h: refs/heads/master
v: v3
  • Loading branch information
Michael Chan authored and David S. Miller committed Jun 9, 2011
1 parent e57fd8b commit 458f23c
Show file tree
Hide file tree
Showing 3 changed files with 10 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: db1d350fcb156b58f66a67680617077bcacfe6fc
refs/heads/master: 7625eb2f2fff7bfae41d3119b472c20b48874895
7 changes: 7 additions & 0 deletions trunk/drivers/net/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@ struct cnic_eth_dev *bnx2_cnic_probe(struct net_device *dev)
struct bnx2 *bp = netdev_priv(dev);
struct cnic_eth_dev *cp = &bp->cnic_eth_dev;

if (!cp->max_iscsi_conn)
return NULL;

cp->drv_owner = THIS_MODULE;
cp->chip_id = bp->chip_id;
cp->pdev = bp->pdev;
Expand Down Expand Up @@ -8177,6 +8180,10 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
bp->timer.data = (unsigned long) bp;
bp->timer.function = bnx2_timer;

#ifdef BCM_CNIC
bp->cnic_eth_dev.max_iscsi_conn =
bnx2_reg_rd_ind(bp, BNX2_FW_MAX_ISCSI_CONN);
#endif
pci_save_state(pdev);

return 0;
Expand Down
12 changes: 2 additions & 10 deletions trunk/drivers/net/cnic.c
Original file line number Diff line number Diff line change
Expand Up @@ -4225,14 +4225,6 @@ static void cnic_enable_bnx2_int(struct cnic_dev *dev)
BNX2_PCICFG_INT_ACK_CMD_INDEX_VALID | cp->last_status_idx);
}

static void cnic_get_bnx2_iscsi_info(struct cnic_dev *dev)
{
u32 max_conn;

max_conn = cnic_reg_rd_ind(dev, BNX2_FW_MAX_ISCSI_CONN);
dev->max_iscsi_conn = max_conn;
}

static void cnic_disable_bnx2_int_sync(struct cnic_dev *dev)
{
struct cnic_local *cp = dev->cnic_priv;
Expand Down Expand Up @@ -4557,8 +4549,6 @@ static int cnic_start_bnx2_hw(struct cnic_dev *dev)
return err;
}

cnic_get_bnx2_iscsi_info(dev);

return 0;
}

Expand Down Expand Up @@ -5224,6 +5214,8 @@ static struct cnic_dev *init_bnx2_cnic(struct net_device *dev)
cdev->pcidev = pdev;
cp->chip_id = ethdev->chip_id;

cdev->max_iscsi_conn = ethdev->max_iscsi_conn;

cp->cnic_ops = &cnic_bnx2_ops;
cp->start_hw = cnic_start_bnx2_hw;
cp->stop_hw = cnic_stop_bnx2_hw;
Expand Down

0 comments on commit 458f23c

Please sign in to comment.