]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3a91e32009df5dc001dd7cac6b93943a0446389a
tree4f45ec8d0dd0c7e973736be476c1f21c555159bd
parenta67cd3f17d7e0378964ab02b884cd258c642cc8c
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: e50c8a88b2a9 ('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