summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_stats.c
diff options
context:
space:
mode:
authorShahaf Shuler <shahafs@mellanox.com>2017-03-05 14:02:48 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2017-04-04 15:52:51 +0200
commit4b2e6df26168a22464fd62ba727ac14bc26b632d (patch)
tree4dfc0ee0f4344b8a3a690215a35dbdb0e5c9d4f9 /drivers/net/mlx5/mlx5_stats.c
parentb247f346019b5e1f8ad9f84139831e3946476b7e (diff)
downloaddpdk-4b2e6df26168a22464fd62ba727ac14bc26b632d.zip
dpdk-4b2e6df26168a22464fd62ba727ac14bc26b632d.tar.gz
dpdk-4b2e6df26168a22464fd62ba727ac14bc26b632d.tar.xz
net/mlx5: fix extended statistics counters identification
Checking whether the counter is IB counter was performed with the wrong index. Fixes: 859081d3fbbf ("net/mlx5: add out of buffer counter to extended statistic") Cc: stable@dpdk.org Signed-off-by: Shahaf Shuler <shahafs@mellanox.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_stats.c')
-rw-r--r--drivers/net/mlx5/mlx5_stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_stats.c b/drivers/net/mlx5/mlx5_stats.c
index 1953293..703f48c 100644
--- a/drivers/net/mlx5/mlx5_stats.c
+++ b/drivers/net/mlx5/mlx5_stats.c
@@ -253,7 +253,7 @@ priv_xstats_init(struct priv *priv)
}
}
for (j = 0; j != xstats_n; ++j) {
- if (priv_is_ib_cntr(mlx5_counters_init[i].ctr_name))
+ if (priv_is_ib_cntr(mlx5_counters_init[j].ctr_name))
continue;
if (xstats_ctrl->dev_table_idx[j] >= dev_stats_n) {
WARN("counter \"%s\" is not recognized",