[dpdk-dev] net/mlx5: fix extended statistics counters identification
Checks
Commit Message
Checking whether the counter is IB counter was performed with the
wrong index.
Fixes: a4e3056b7018 ("net/mlx5: add out of buffer counter to extended statistic")
Cc: stable@dpdk.org
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
---
drivers/net/mlx5/mlx5_stats.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Sun, Mar 05, 2017 at 02:02:48PM +0200, Shahaf Shuler wrote:
> Checking whether the counter is IB counter was performed with the
> wrong index.
>
> Fixes: a4e3056b7018 ("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>
On 3/6/2017 8:43 AM, Adrien Mazarguil wrote:
> On Sun, Mar 05, 2017 at 02:02:48PM +0200, Shahaf Shuler wrote:
>> Checking whether the counter is IB counter was performed with the
>> wrong index.
>>
>> Fixes: a4e3056b7018 ("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>
Applied to dpdk-next-net/master, thanks.
@@ -253,7 +253,7 @@ struct mlx5_counter_ctrl {
}
}
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",