Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214952
b: refs/heads/master
c: 6fe8bce
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Kravkov authored and David S. Miller committed Oct 6, 2010
1 parent 998a449 commit 77f0f7a
Show file tree
Hide file tree
Showing 2 changed files with 14 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: f85582f8c48addd8166727ef692d88b0ff618c5e
refs/heads/master: 6fe8bce7b3b69835e8049106947db6b0f1f3a8d8
13 changes: 13 additions & 0 deletions trunk/drivers/net/bnx2x/bnx2x_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -1339,6 +1339,7 @@ void bnx2x_stats_init(struct bnx2x *bp)
int port = BP_PORT(bp);
int mb_idx = BP_FW_MB_IDX(bp);
int i;
struct eth_stats_query *stats = bnx2x_sp(bp, fw_stats);

bp->stats_pending = 0;
bp->executer_idx = 0;
Expand Down Expand Up @@ -1380,6 +1381,18 @@ void bnx2x_stats_init(struct bnx2x *bp)
memset(&fp->eth_q_stats, 0, sizeof(struct bnx2x_eth_q_stats));
}

for_each_queue(bp, i) {
/* Set initial stats counter in the stats ramrod data to -1 */
int cl_id = bp->fp[i].cl_id;

stats->xstorm_common.client_statistics[cl_id].
stats_counter = 0xffff;
stats->ustorm_common.client_statistics[cl_id].
stats_counter = 0xffff;
stats->tstorm_common.client_statistics[cl_id].
stats_counter = 0xffff;
}

memset(&bp->dev->stats, 0, sizeof(struct net_device_stats));
memset(&bp->eth_stats, 0, sizeof(struct bnx2x_eth_stats));

Expand Down

0 comments on commit 77f0f7a

Please sign in to comment.