]> 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)
commit1ddc14378122fa0cdba269bbbf44b22b9575e26e
tree4f45ec8d0dd0c7e973736be476c1f21c555159bd
parent0036563bc3a37366299d9839016387a8730461fd
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: d526634190a6 ('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