diff options
author | David S. Miller <davem@davemloft.net> | 2009-10-30 00:28:59 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-30 00:28:59 -0400 |
commit | 0519d83d83ed485b5a1f9222ff69d7d6c9bb8a01 (patch) | |
tree | 2e336be8a4bd2e59bcd4b69b00feb77c6672a9cb /drivers/net/cnic.c | |
parent | 38bfd8f5bec496e8e0db8849e01c99a33479418a (diff) | |
parent | b5dd884e682cae6b8c037f9d11f3b623b4cf2011 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
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); |