projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bcdc32
)
cnic: Zero out status block and Event Queue indices.
author
Michael Chan
<mchan@broadcom.com>
Thu, 10 Dec 2009 15:40:58 +0000
(15:40 +0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 11 Dec 2009 23:07:55 +0000
(15:07 -0800)
To prevent stale indices from causing spurious events when restarting the
bnx2x devices.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cnic.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/cnic.c
b/drivers/net/cnic.c
index a2c33289326a7fafceb4b249120ef868dc16c362..4332b3a2fafbacec6705b650da28cea157032fc5 100644
(file)
--- a/
drivers/net/cnic.c
+++ b/
drivers/net/cnic.c
@@
-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);
@@
-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);
}