Fix the netlink type for hardware timestamp flags, which are represented as a bitset of flags. Although only one flag is supported currently, the correct netlink bitset type should be used instead of u32 to keep consistency with other fields. Address this by adding a new named string set description for the hwtstamp flag structure. The code has been introduced in the current release so the uAPI change is still okay.
Showing the changes to include/uapi/linux (1 of 6 files). Show all
Unified · Split
| @@ -682,6 +682,7 @@ enum ethtool_link_ext_substate_module { · 681 unmodified lines | ||
| 682 | 682 | * @ETH_SS_STATS_ETH_CTRL: names of IEEE 802.3 MAC Control statistics |
| 683 | 683 | * @ETH_SS_STATS_RMON: names of RMON statistics |
| 684 | 684 | * @ETH_SS_STATS_PHY: names of PHY(dev) statistics |
| 685 | + * @ETH_SS_TS_FLAGS: hardware timestamping flags | |
| 685 | 686 | * |
| 686 | 687 | * @ETH_SS_COUNT: number of defined string sets |
| 687 | 688 | */ |
| @@ -708,6 +709,7 @@ enum ethtool_stringset { · 20 unmodified lines | ||
| 708 | 709 | ETH_SS_STATS_ETH_CTRL, |
| 709 | 710 | ETH_SS_STATS_RMON, |
| 710 | 711 | ETH_SS_STATS_PHY, |
| 712 | + ETH_SS_TS_FLAGS, | |
| 711 | 713 | |
| 712 | 714 | /* add new constants above here */ |
| 713 | 715 | ETH_SS_COUNT |