net/mlx5e: Fix global PFC counters replication
authorGal Pressman <galp@mellanox.com>
Wed, 7 Sep 2016 16:08:00 +0000 (19:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Sep 2016 23:15:29 +0000 (16:15 -0700)
commit4e39883d9c7426f8246ef86a32dc6a6f06f5aace
tree4f45ec8d0dd0c7e973736be476c1f21c555159bd
parent7abc2110779b133e54ce681a4d0be3d89304eda1
net/mlx5e: Fix global PFC counters replication

Currently when reading global PFC statistics we left the counter
iterator out of the equation and we ended up reading the same counter
over and over again.

Instead of reading the counter at index 0 on every iteration we now read
the counter at index (i).

Fixes: e989d5a532ce ('net/mlx5e: Expose flow control counters to ethtool')
Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c