net/mlx5e: Expose flow control counters to ethtool
authorGal Pressman <galp@mellanox.com>
Mon, 4 Jul 2016 14:23:12 +0000 (17:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2016 07:06:03 +0000 (00:06 -0700)
commite989d5a532ce6b0512bd2997c0db46fd0b5e81ec
tree2cf19b8f4a87ca4c33f6e8ca054c261fb3ff85b7
parentfe6b9bd9ebd691f58b4568454946b62cad84fa07
net/mlx5e: Expose flow control counters to ethtool

Just like per prio counters, the global flow counters are queried from
per priority counters register.
Global flow control counters are stored in priority 0 PFC counters.

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
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h