diff options
Diffstat (limited to 'drivers/net/cnic.c')
-rw-r--r-- | drivers/net/cnic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/cnic.c b/drivers/net/cnic.c index 333b1d1e7435..cfc6b208631a 100644 --- a/drivers/net/cnic.c +++ b/drivers/net/cnic.c | |||
@@ -3560,9 +3560,9 @@ static void cnic_init_bnx2_rx_ring(struct cnic_dev *dev) | |||
3560 | cnic_ctx_wr(dev, cid_addr, BNX2_L2CTX_CTX_TYPE, val); | 3560 | cnic_ctx_wr(dev, cid_addr, BNX2_L2CTX_CTX_TYPE, val); |
3561 | 3561 | ||
3562 | if (sb_id == 0) | 3562 | if (sb_id == 0) |
3563 | val = 2 << BNX2_L2CTX_STATUSB_NUM_SHIFT; | 3563 | val = 2 << BNX2_L2CTX_L2_STATUSB_NUM_SHIFT; |
3564 | else | 3564 | else |
3565 | val = BNX2_L2CTX_STATUSB_NUM(sb_id); | 3565 | val = BNX2_L2CTX_L2_STATUSB_NUM(sb_id); |
3566 | cnic_ctx_wr(dev, cid_addr, BNX2_L2CTX_HOST_BDIDX, val); | 3566 | cnic_ctx_wr(dev, cid_addr, BNX2_L2CTX_HOST_BDIDX, val); |
3567 | 3567 | ||
3568 | rxbd = (struct rx_bd *) (cp->l2_ring + BCM_PAGE_SIZE); | 3568 | rxbd = (struct rx_bd *) (cp->l2_ring + BCM_PAGE_SIZE); |
@@ -3719,7 +3719,7 @@ static int cnic_start_bnx2_hw(struct cnic_dev *dev) | |||
3719 | cp->int_num = 0; | 3719 | cp->int_num = 0; |
3720 | if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { | 3720 | if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { |
3721 | u32 sb_id = cp->status_blk_num; | 3721 | u32 sb_id = cp->status_blk_num; |
3722 | u32 sb = BNX2_L2CTX_STATUSB_NUM(sb_id); | 3722 | u32 sb = BNX2_L2CTX_L5_STATUSB_NUM(sb_id); |
3723 | 3723 | ||
3724 | cp->int_num = sb_id << BNX2_PCICFG_INT_ACK_CMD_INT_NUM_SHIFT; | 3724 | cp->int_num = sb_id << BNX2_PCICFG_INT_ACK_CMD_INT_NUM_SHIFT; |
3725 | cnic_ctx_wr(dev, cp->kwq_cid_addr, L5_KRNLQ_HOST_QIDX, sb); | 3725 | cnic_ctx_wr(dev, cp->kwq_cid_addr, L5_KRNLQ_HOST_QIDX, sb); |