Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175566
b: refs/heads/master
c: 4e9c4fd
h: refs/heads/master
v: v3
  • Loading branch information
Michael Chan authored and David S. Miller committed Dec 11, 2009
1 parent 6fc6491 commit 5570e5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1bcdc32cf4d94442eba79599ce8438ea0b8f78b5
refs/heads/master: 4e9c4fd3e7e022c7a5b8bb7cd06bf914b202cfea
5 changes: 5 additions & 0 deletions trunk/drivers/net/cnic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,8 @@ static int cnic_alloc_bnx2x_resc(struct cnic_dev *dev)
cp->bnx2x_status_blk = cp->status_blk;
cp->bnx2x_def_status_blk = cp->ethdev->irq_arr[1].status_blk;

memset(cp->bnx2x_status_blk, 0, sizeof(struct host_status_block));

cp->l2_rx_ring_size = 15;

ret = cnic_alloc_l2_rings(dev, 4);
Expand Down Expand Up @@ -4295,6 +4297,9 @@ static void cnic_stop_bnx2x_hw(struct cnic_dev *dev)
offsetof(struct cstorm_status_block_c,
index_values[HC_INDEX_C_ISCSI_EQ_CONS]),
0);
CNIC_WR(dev, BAR_CSTRORM_INTMEM +
CSTORM_ISCSI_EQ_CONS_OFFSET(cp->func, 0), 0);
CNIC_WR16(dev, cp->kcq_io_addr, 0);
cnic_free_resc(dev);
}

Expand Down

0 comments on commit 5570e5b

Please sign in to comment.