Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199208
b: refs/heads/master
c: b58ffb4
h: refs/heads/master
v: v3
  • Loading branch information
Michael Chan authored and David S. Miller committed May 28, 2010
1 parent a9c093b commit afa13b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 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: 17d95640034c4e0f12e5f1c9d1097d8dba6484ea
refs/heads/master: b58ffb41fc09d1ffaca97e5ae801233575be2a7f
10 changes: 3 additions & 7 deletions trunk/drivers/net/cnic.c
Original file line number Diff line number Diff line change
Expand Up @@ -3367,13 +3367,9 @@ static int cnic_cm_shutdown(struct cnic_dev *dev)

static void cnic_init_context(struct cnic_dev *dev, u32 cid)
{
struct cnic_local *cp = dev->cnic_priv;
u32 cid_addr;
int i;

if (CHIP_NUM(cp) == CHIP_NUM_5709)
return;

cid_addr = GET_CID_ADDR(cid);

for (i = 0; i < CTX_SIZE; i += 4)
Expand Down Expand Up @@ -3530,14 +3526,11 @@ static void cnic_init_bnx2_tx_ring(struct cnic_dev *dev)

sb_id = cp->status_blk_num;
tx_cid = 20;
cnic_init_context(dev, tx_cid);
cnic_init_context(dev, tx_cid + 1);
cp->tx_cons_ptr = &s_blk->status_tx_quick_consumer_index2;
if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) {
struct status_block_msix *sblk = cp->status_blk.bnx2;

tx_cid = TX_TSS_CID + sb_id - 1;
cnic_init_context(dev, tx_cid);
CNIC_WR(dev, BNX2_TSCH_TSS_CFG, (sb_id << 24) |
(TX_TSS_CID << 7));
cp->tx_cons_ptr = &sblk->status_tx_quick_consumer_index;
Expand All @@ -3556,6 +3549,9 @@ static void cnic_init_bnx2_tx_ring(struct cnic_dev *dev)
offset2 = BNX2_L2CTX_TBDR_BHADDR_HI_XI;
offset3 = BNX2_L2CTX_TBDR_BHADDR_LO_XI;
} else {
cnic_init_context(dev, tx_cid);
cnic_init_context(dev, tx_cid + 1);

offset0 = BNX2_L2CTX_TYPE;
offset1 = BNX2_L2CTX_CMD_TYPE;
offset2 = BNX2_L2CTX_TBDR_BHADDR_HI;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/cnic_if.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#ifndef CNIC_IF_H
#define CNIC_IF_H

#define CNIC_MODULE_VERSION "2.1.1"
#define CNIC_MODULE_RELDATE "Feb 22, 2010"
#define CNIC_MODULE_VERSION "2.1.2"
#define CNIC_MODULE_RELDATE "May 26, 2010"

#define CNIC_ULP_RDMA 0
#define CNIC_ULP_ISCSI 1
Expand Down

0 comments on commit afa13b7

Please sign in to comment.