blob: 8c066ad385005ad8f4e05ad1930953c04e0642bf [file] [log] [blame]
Damjan Marion0f60ff82017-03-30 17:58:42 +02001diff --git a/drivers/net/mlx5/mlx5_stats.c b/drivers/net/mlx5/mlx5_stats.c
2index 1953293..703f48c 100644
3--- a/drivers/net/mlx5/mlx5_stats.c
4+++ b/drivers/net/mlx5/mlx5_stats.c
5@@ -253,7 +253,7 @@ struct mlx5_counter_ctrl {
6 }
7 }
8 for (j = 0; j != xstats_n; ++j) {
9- if (priv_is_ib_cntr(mlx5_counters_init[i].ctr_name))
10+ if (priv_is_ib_cntr(mlx5_counters_init[j].ctr_name))
11 continue;
12 if (xstats_ctrl->dev_table_idx[j] >= dev_stats_n) {
13 WARN("counter \"%s\" is not recognized",