History

net: ethtool: tsconfig: Fix netlink type of hwtstamp flags

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.

Kory Maincent committed 1 year ago

Commit 6a774221 parent 3da81cb6 files · +39 −11Browse files

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

Unified · Split

include/uapi/linux/ethtool.h+2−0
@@ -682,6 +682,7 @@ enum ethtool_link_ext_substate_module { · 681 unmodified lines
682682 * @ETH_SS_STATS_ETH_CTRL: names of IEEE 802.3 MAC Control statistics
683683 * @ETH_SS_STATS_RMON: names of RMON statistics
684684 * @ETH_SS_STATS_PHY: names of PHY(dev) statistics
685+ * @ETH_SS_TS_FLAGS: hardware timestamping flags
685686 *
686687 * @ETH_SS_COUNT: number of defined string sets
687688 */
@@ -708,6 +709,7 @@ enum ethtool_stringset { · 20 unmodified lines
708709 ETH_SS_STATS_ETH_CTRL,
709710 ETH_SS_STATS_RMON,
710711 ETH_SS_STATS_PHY,
712+ ETH_SS_TS_FLAGS,
711713
712714 /* add new constants above here */
713715 ETH_SS_COUNT