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 | 672 | * @ETH_SS_STATS_STD: standardized stats |
| 673 | 673 | * @ETH_SS_STATS_ETH_PHY: names of IEEE 802.3 PHY statistics |
| 674 | 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 | 677 | * @ETH_SS_COUNT: number of defined string sets |
| 677 | 678 | */ |
| @@ -695,6 +696,7 @@ enum ethtool_stringset { · 17 unmodified lines | ||
| 695 | 696 | ETH_SS_STATS_STD, |
| 696 | 697 | ETH_SS_STATS_ETH_PHY, |
| 697 | 698 | ETH_SS_STATS_ETH_MAC, |
| 699 | + ETH_SS_STATS_ETH_CTRL, | |
| 698 | 700 | |
| 699 | 701 | /* add new constants above here */ |
| 700 | 702 | ETH_SS_COUNT |
| @@ -699,6 +699,7 @@ enum { · 698 unmodified lines | ||
| 699 | 699 | enum { |
| 700 | 700 | ETHTOOL_STATS_ETH_PHY, |
| 701 | 701 | ETHTOOL_STATS_ETH_MAC, |
| 702 | + ETHTOOL_STATS_ETH_CTRL, | |
| 702 | 703 | |
| 703 | 704 | /* add new constants above here */ |
| 704 | 705 | __ETHTOOL_STATS_CNT |
| @@ -779,6 +780,19 @@ enum { · 74 unmodified lines | ||
| 779 | 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 | 796 | /* generic netlink info */ |
| 783 | 797 | #define ETHTOOL_GENL_NAME "ethtool" |
| 784 | 798 | #define ETHTOOL_GENL_VERSION 1 |