Number of devices maintains the standard-based MAC control counters for control frames. Add a API for those.
Showing the changes to include/uapi (2 of 6 files). Show all
Unified · Split
| @@ -672,6 +672,7 @@ enum ethtool_link_ext_substate_cable_issue { · 671 unmodified lines | |||
| 672 | * @ETH_SS_STATS_STD: standardized stats | 672 | * @ETH_SS_STATS_STD: standardized stats |
| 673 | * @ETH_SS_STATS_ETH_PHY: names of IEEE 802.3 PHY statistics | 673 | * @ETH_SS_STATS_ETH_PHY: names of IEEE 802.3 PHY statistics |
| 674 | * @ETH_SS_STATS_ETH_MAC: names of IEEE 802.3 MAC statistics | 674 | * @ETH_SS_STATS_ETH_MAC: names of IEEE 802.3 MAC statistics |
| 675 | * @ETH_SS_STATS_ETH_CTRL: names of IEEE 802.3 MAC Control statistics | ||
| 675 | * | 676 | * |
| 676 | * @ETH_SS_COUNT: number of defined string sets | 677 | * @ETH_SS_COUNT: number of defined string sets |
| 677 | */ | 678 | */ |
| @@ -695,6 +696,7 @@ enum ethtool_stringset { · 17 unmodified lines | |||
| 695 | ETH_SS_STATS_STD, | 696 | ETH_SS_STATS_STD, |
| 696 | ETH_SS_STATS_ETH_PHY, | 697 | ETH_SS_STATS_ETH_PHY, |
| 697 | ETH_SS_STATS_ETH_MAC, | 698 | ETH_SS_STATS_ETH_MAC, |
| 699 | ETH_SS_STATS_ETH_CTRL, | ||
| 698 | 700 | ||
| 699 | /* add new constants above here */ | 701 | /* add new constants above here */ |
| 700 | ETH_SS_COUNT | 702 | ETH_SS_COUNT |
| @@ -699,6 +699,7 @@ enum { · 698 unmodified lines | |||
| 699 | enum { | 699 | enum { |
| 700 | ETHTOOL_STATS_ETH_PHY, | 700 | ETHTOOL_STATS_ETH_PHY, |
| 701 | ETHTOOL_STATS_ETH_MAC, | 701 | ETHTOOL_STATS_ETH_MAC, |
| 702 | ETHTOOL_STATS_ETH_CTRL, | ||
| 702 | 703 | ||
| 703 | /* add new constants above here */ | 704 | /* add new constants above here */ |
| 704 | __ETHTOOL_STATS_CNT | 705 | __ETHTOOL_STATS_CNT |
| @@ -779,6 +780,19 @@ enum { · 74 unmodified lines | |||
| 779 | ETHTOOL_A_STATS_ETH_MAC_MAX = (__ETHTOOL_A_STATS_ETH_MAC_CNT - 1) | 780 | ETHTOOL_A_STATS_ETH_MAC_MAX = (__ETHTOOL_A_STATS_ETH_MAC_CNT - 1) |
| 780 | }; | 781 | }; |
| 781 | 782 | ||
| 783 | enum { | ||
| 784 | /* 30.3.3.3 aMACControlFramesTransmitted */ | ||
| 785 | ETHTOOL_A_STATS_ETH_CTRL_3_TX, | ||
| 786 | /* 30.3.3.4 aMACControlFramesReceived */ | ||
| 787 | ETHTOOL_A_STATS_ETH_CTRL_4_RX, | ||
| 788 | /* 30.3.3.5 aUnsupportedOpcodesReceived */ | ||
| 789 | ETHTOOL_A_STATS_ETH_CTRL_5_RX_UNSUP, | ||
| 790 | |||
| 791 | /* add new constants above here */ | ||
| 792 | __ETHTOOL_A_STATS_ETH_CTRL_CNT, | ||
| 793 | ETHTOOL_A_STATS_ETH_CTRL_MAX = (__ETHTOOL_A_STATS_ETH_CTRL_CNT - 1) | ||
| 794 | }; | ||
| 795 | |||
| 782 | /* generic netlink info */ | 796 | /* generic netlink info */ |
| 783 | #define ETHTOOL_GENL_NAME "ethtool" | 797 | #define ETHTOOL_GENL_NAME "ethtool" |
| 784 | #define ETHTOOL_GENL_VERSION 1 | 798 | #define ETHTOOL_GENL_VERSION 1 |