History

ethtool: Add phy statistics

Ethernet PHYs can maintain statistics, for example errors while idle and receive errors. Add an ethtool mechanism to retrieve these statistics, using the same model as MAC statistics.

Andrew Lunn committed 10 years ago

Commit f3a40941 parent a3748a93 files · +89 −1Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/ethtool.h+3−0
@@ -542,6 +542,7 @@ struct ethtool_pauseparam { · 541 unmodified lines
542542 * now deprecated
543543 * @ETH_SS_FEATURES: Device feature names
544544 * @ETH_SS_RSS_HASH_FUNCS: RSS hush function names
545+ * @ETH_SS_PHY_STATS: Statistic names, for use with %ETHTOOL_GPHYSTATS
545546 */
546547 enum ethtool_stringset {
547548 ETH_SS_TEST = 0,
@@ -551,6 +552,7 @@ enum ethtool_stringset { · 3 unmodified lines
551552 ETH_SS_FEATURES,
552553 ETH_SS_RSS_HASH_FUNCS,
553554 ETH_SS_TUNABLES,
555+ ETH_SS_PHY_STATS,
554556 };
555557
556558 /**
@@ -1225,6 +1227,7 @@ enum ethtool_sfeatures_retval_bits { · 668 unmodified lines
12251227 #define ETHTOOL_SRSSH 0x00000047 /* Set RX flow hash configuration */
12261228 #define ETHTOOL_GTUNABLE 0x00000048 /* Get tunable configuration */
12271229 #define ETHTOOL_STUNABLE 0x00000049 /* Set tunable configuration */
1230+#define ETHTOOL_GPHYSTATS 0x0000004a /* get PHY-specific statistics */
12281231
12291232 /* compatibility with older code */
12301233 #define SPARC_ETH_GSET ETHTOOL_GSET

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t