diff options
| -rw-r--r-- | drivers/net/cnic.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/cnic.c b/drivers/net/cnic.c index a2c33289326a..4332b3a2fafb 100644 --- a/drivers/net/cnic.c +++ b/drivers/net/cnic.c | |||
| @@ -1104,6 +1104,8 @@ static int cnic_alloc_bnx2x_resc(struct cnic_dev *dev) | |||
| 1104 | cp->bnx2x_status_blk = cp->status_blk; | 1104 | cp->bnx2x_status_blk = cp->status_blk; |
| 1105 | cp->bnx2x_def_status_blk = cp->ethdev->irq_arr[1].status_blk; | 1105 | cp->bnx2x_def_status_blk = cp->ethdev->irq_arr[1].status_blk; |
| 1106 | 1106 | ||
| 1107 | memset(cp->bnx2x_status_blk, 0, sizeof(struct host_status_block)); | ||
| 1108 | |||
| 1107 | cp->l2_rx_ring_size = 15; | 1109 | cp->l2_rx_ring_size = 15; |
| 1108 | 1110 | ||
| 1109 | ret = cnic_alloc_l2_rings(dev, 4); | 1111 | ret = cnic_alloc_l2_rings(dev, 4); |
| @@ -4295,6 +4297,9 @@ static void cnic_stop_bnx2x_hw(struct cnic_dev *dev) | |||
| 4295 | offsetof(struct cstorm_status_block_c, | 4297 | offsetof(struct cstorm_status_block_c, |
| 4296 | index_values[HC_INDEX_C_ISCSI_EQ_CONS]), | 4298 | index_values[HC_INDEX_C_ISCSI_EQ_CONS]), |
| 4297 | 0); | 4299 | 0); |
| 4300 | CNIC_WR(dev, BAR_CSTRORM_INTMEM + | ||
| 4301 | CSTORM_ISCSI_EQ_CONS_OFFSET(cp->func, 0), 0); | ||
| 4302 | CNIC_WR16(dev, cp->kcq_io_addr, 0); | ||
| 4298 | cnic_free_resc(dev); | 4303 | cnic_free_resc(dev); |
| 4299 | } | 4304 | } |
| 4300 | 4305 | ||
