]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd526634190a6bbeea91440730215e47db6decc62
tree2cf19b8f4a87ca4c33f6e8ca054c261fb3ff85b7
parent3f0927175789d439ad64824d34a0fc5b3e74d4f3
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