diff options
-rw-r--r-- | drivers/net/bnx2x/bnx2x_stats.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/bnx2x/bnx2x_stats.c b/drivers/net/bnx2x/bnx2x_stats.c index 5644bddb3d19..4733c835dad9 100644 --- a/drivers/net/bnx2x/bnx2x_stats.c +++ b/drivers/net/bnx2x/bnx2x_stats.c | |||
@@ -1339,6 +1339,7 @@ void bnx2x_stats_init(struct bnx2x *bp) | |||
1339 | int port = BP_PORT(bp); | 1339 | int port = BP_PORT(bp); |
1340 | int mb_idx = BP_FW_MB_IDX(bp); | 1340 | int mb_idx = BP_FW_MB_IDX(bp); |
1341 | int i; | 1341 | int i; |
1342 | struct eth_stats_query *stats = bnx2x_sp(bp, fw_stats); | ||
1342 | 1343 | ||
1343 | bp->stats_pending = 0; | 1344 | bp->stats_pending = 0; |
1344 | bp->executer_idx = 0; | 1345 | bp->executer_idx = 0; |
@@ -1380,6 +1381,18 @@ void bnx2x_stats_init(struct bnx2x *bp) | |||
1380 | memset(&fp->eth_q_stats, 0, sizeof(struct bnx2x_eth_q_stats)); | 1381 | memset(&fp->eth_q_stats, 0, sizeof(struct bnx2x_eth_q_stats)); |
1381 | } | 1382 | } |
1382 | 1383 | ||
1384 | for_each_queue(bp, i) { | ||
1385 | /* Set initial stats counter in the stats ramrod data to -1 */ | ||
1386 | int cl_id = bp->fp[i].cl_id; | ||
1387 | |||
1388 | stats->xstorm_common.client_statistics[cl_id]. | ||
1389 | stats_counter = 0xffff; | ||
1390 | stats->ustorm_common.client_statistics[cl_id]. | ||
1391 | stats_counter = 0xffff; | ||
1392 | stats->tstorm_common.client_statistics[cl_id]. | ||
1393 | stats_counter = 0xffff; | ||
1394 | } | ||
1395 | |||
1383 | memset(&bp->dev->stats, 0, sizeof(struct net_device_stats)); | 1396 | memset(&bp->dev->stats, 0, sizeof(struct net_device_stats)); |
1384 | memset(&bp->eth_stats, 0, sizeof(struct bnx2x_eth_stats)); | 1397 | memset(&bp->eth_stats, 0, sizeof(struct bnx2x_eth_stats)); |
1385 | 1398 | ||