Files
linux/include/uapi/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-05-28 11:22:14 +02:00
…
2019-12-18 18:07:31 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-08-12 10:58:00 -07:00
…
…
…
…
…
…
…
…
…
…
…
2019-10-09 22:31:14 -04:00
…
…
2019-09-25 17:51:39 -07:00
…
2019-08-02 14:44:02 +10:00
…
…
2020-09-09 14:19:55 -07:00
…
2020-04-27 16:29:41 +05:30
…
…
…
…
2020-07-19 19:20:22 -07:00
…
2020-07-10 13:54:00 -07:00
…
…
2020-06-24 21:34:11 +02:00
2020-05-14 16:44:25 +02:00
…
…
2020-05-28 22:09:47 -04:00
…
…
2019-08-12 19:33:50 -07:00
…
2020-07-12 10:22:01 +02:00
2020-08-27 08:01:47 -07:00
…
…
…
…
…
2019-12-11 15:31:52 +01:00
…
…
…
…
…
2020-07-19 19:20:22 -07:00
2020-07-24 17:12:41 -07:00
2020-08-05 19:02:07 +05:30
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-07-13 15:32:56 -07:00
2020-04-20 12:43:24 -07:00
…
…
…
2020-07-24 17:12:41 -07:00
2020-08-27 07:55:59 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-09-08 15:37:04 +02:00
…
…
…
2020-05-21 08:20:35 -06:00
…
2020-03-29 22:30:57 -07:00
…
…
…
…
…
…
…
…
…
…
2020-07-09 12:38:41 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-01-18 09:19:18 -05:00
…
…
…
…
2019-10-02 20:32:27 -06:00
…
…
…
…
…
2019-07-30 20:34:34 +02:00
…
…
2020-05-21 17:04:07 -07:00
…
…
…
…
…
…
…
…
…
2020-03-29 22:30:57 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-12-18 18:07:31 +01:00
…
…
…
…
…
…
…
2019-12-09 09:59:07 +01:00
…
…
…
…
2020-03-29 23:29:08 +02:00
…
…
…
…
…
…
…
…
…
2019-08-01 21:49:46 +02:00
…
…
…
2020-07-13 15:32:56 -07:00
2020-06-24 07:51:01 +02:00
…