diff options
Diffstat (limited to 'drivers/net/ethernet/broadcom/cnic.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/cnic.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/cnic.c b/drivers/net/ethernet/broadcom/cnic.c index 8142480d9770..99394bd49a13 100644 --- a/drivers/net/ethernet/broadcom/cnic.c +++ b/drivers/net/ethernet/broadcom/cnic.c | |||
@@ -3135,6 +3135,7 @@ static void cnic_service_bnx2x_bh(unsigned long data) | |||
3135 | { | 3135 | { |
3136 | struct cnic_dev *dev = (struct cnic_dev *) data; | 3136 | struct cnic_dev *dev = (struct cnic_dev *) data; |
3137 | struct cnic_local *cp = dev->cnic_priv; | 3137 | struct cnic_local *cp = dev->cnic_priv; |
3138 | struct bnx2x *bp = netdev_priv(dev->netdev); | ||
3138 | u32 status_idx, new_status_idx; | 3139 | u32 status_idx, new_status_idx; |
3139 | 3140 | ||
3140 | if (unlikely(!test_bit(CNIC_F_CNIC_UP, &dev->flags))) | 3141 | if (unlikely(!test_bit(CNIC_F_CNIC_UP, &dev->flags))) |
@@ -3146,7 +3147,7 @@ static void cnic_service_bnx2x_bh(unsigned long data) | |||
3146 | CNIC_WR16(dev, cp->kcq1.io_addr, | 3147 | CNIC_WR16(dev, cp->kcq1.io_addr, |
3147 | cp->kcq1.sw_prod_idx + MAX_KCQ_IDX); | 3148 | cp->kcq1.sw_prod_idx + MAX_KCQ_IDX); |
3148 | 3149 | ||
3149 | if (cp->ethdev->drv_state & CNIC_DRV_STATE_NO_FCOE) { | 3150 | if (!CNIC_SUPPORTS_FCOE(bp)) { |
3150 | cp->arm_int(dev, status_idx); | 3151 | cp->arm_int(dev, status_idx); |
3151 | break; | 3152 | break; |
3152 | } | 3153 | } |
@@ -5217,7 +5218,8 @@ static void cnic_init_rings(struct cnic_dev *dev) | |||
5217 | "iSCSI CLIENT_SETUP did not complete\n"); | 5218 | "iSCSI CLIENT_SETUP did not complete\n"); |
5218 | cnic_spq_completion(dev, DRV_CTL_RET_L2_SPQ_CREDIT_CMD, 1); | 5219 | cnic_spq_completion(dev, DRV_CTL_RET_L2_SPQ_CREDIT_CMD, 1); |
5219 | cnic_ring_ctl(dev, cid, cli, 1); | 5220 | cnic_ring_ctl(dev, cid, cli, 1); |
5220 | *cid_ptr = cid; | 5221 | *cid_ptr = cid >> 4; |
5222 | *(cid_ptr + 1) = cid * bp->db_size; | ||
5221 | } | 5223 | } |
5222 | } | 5224 | } |
5223 | 5225 | ||