Files
linux/include/linux
Jakub Kicinski 9a27a33027 ethtool: add standard pause stats
Currently drivers have to report their pause frames statistics
via ethtool -S, and there is a wide variety of names used for
these statistics.

Add the two statistics defined in IEEE 802.3x to the standard
API. Create a new ethtool request header flag for including
statistics in the response to GET commands.

Always create the ETHTOOL_A_PAUSE_STATS nest in replies when
flag is set. Testing if driver declares the op is not a reliable
way of checking if any stats will actually be included and therefore
we don't want to give the impression that presence of
ETHTOOL_A_PAUSE_STATS indicates driver support.

Note that this patch does not include PFC counters, which may fit
better in dcbnl? But mostly I don't need them/have a setup to test
them so I haven't looked deeply into exposing them :)

v3:
 - add a helper for "uninitializing" stats, rather than a cryptic
   memset() (Andrew)

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-15 13:26:28 -07:00
..
…
…
…
…
…
…
…
2020-06-25 22:25:13 -07:00
…
…
2020-08-24 18:01:33 -07:00
2020-06-16 14:19:57 +02:00
…
2020-07-27 14:55:22 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-07-21 08:24:52 -05:00
…
…
2020-07-08 10:48:35 -07:00
…
…
…
2020-08-28 21:20:33 +02:00
…
…
…
2020-08-25 15:37:41 -07:00
…
…
…
…
…
…
…
…
…
…
2020-06-24 17:08:31 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-06-16 19:25:20 +02:00
…
…
…
…
2020-07-27 14:29:23 -04:00
…
…
…
…
2020-09-15 13:26:28 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
2020-06-17 00:07:38 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-08-14 19:56:56 -07:00
…
…
…
…
…
2020-07-24 17:12:41 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-08-04 21:02:38 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-08-26 12:41:56 +02:00
…
…
…
…
…
…
…
…
…
2020-06-26 10:01:08 -06:00
…
…
2020-06-02 15:15:46 +01:00
…
…
…
…
…
…
…
…
…
…
…
2020-09-04 09:25:20 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-07-31 18:08:59 +10:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-07-01 10:49:02 +02:00
…
…
…
…
…
…
…
2020-07-23 17:34:18 +10:00
…
…
…
…
…
…
…
…
2020-08-31 12:52:33 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-08-19 16:09:19 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-07-16 23:19:51 +02:00
…
…
…
…
…
…
…
…
…
…
…
2020-07-20 09:39:11 +02:00
…
…
…
…
…
…
…
…
…
2020-08-07 11:33:24 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-07-04 09:35:36 -05:00
…
…
…
…
2020-07-07 11:58:59 -05:00
…
…
…
…
2020-08-01 11:28:17 +02:00
…
…
…
…
2020-06-26 00:27:38 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…