Damjan Marion | 0f60ff8 | 2017-03-30 17:58:42 +0200 | [diff] [blame] | 1 | diff --git a/drivers/net/mlx5/mlx5_stats.c b/drivers/net/mlx5/mlx5_stats.c |
| 2 | index 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", |