aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2009-08-21 12:20:43 -0400
committerDavid S. Miller <davem@davemloft.net>2009-08-22 20:48:41 -0400
commit155d5561f570c5b3af7a178670061927d89209fb (patch)
tree8d495b81eebeb387f8decd6cf499cc93c5383ea3 /drivers
parentf8f2109d4f6c525f893f6f2901ae62372e83245e (diff)
bnx2: Zero out status block before chip reset.
In case IRQs are shared, we will not mistakenly start processing the ring based on old status block indices. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/bnx2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 756d4b4f0a9f..e75b6e94f652 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -4858,6 +4858,7 @@ bnx2_init_chip(struct bnx2 *bp)
4858 bnx2_reg_wr_ind(bp, BNX2_RBUF_CONFIG2, BNX2_RBUF_CONFIG2_VAL(mtu)); 4858 bnx2_reg_wr_ind(bp, BNX2_RBUF_CONFIG2, BNX2_RBUF_CONFIG2_VAL(mtu));
4859 bnx2_reg_wr_ind(bp, BNX2_RBUF_CONFIG3, BNX2_RBUF_CONFIG3_VAL(mtu)); 4859 bnx2_reg_wr_ind(bp, BNX2_RBUF_CONFIG3, BNX2_RBUF_CONFIG3_VAL(mtu));
4860 4860
4861 memset(bp->bnx2_napi[0].status_blk.msi, 0, bp->status_stats_size);
4861 for (i = 0; i < BNX2_MAX_MSIX_VEC; i++) 4862 for (i = 0; i < BNX2_MAX_MSIX_VEC; i++)
4862 bp->bnx2_napi[i].last_status_idx = 0; 4863 bp->bnx2_napi[i].last_status_idx = 0;
4863 4864