History

net: ethtool: Add support for tsconfig command to get/set hwtstamp config

Introduce support for ETHTOOL_MSG_TSCONFIG_GET/SET ethtool netlink socket to read and configure hwtstamp configuration of a PHC provider. Note that simultaneous hwtstamp isn't supported; configuring a new one disables the previous setting.

Kory Maincent committed 1 year ago

Commit 6e9e2ee1 parent b9e3f7d10 files · +655 −26Browse files

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

Unified · Split

include/uapi/linux/ethtool_netlink_generated.h+16−0
@@ -694,6 +694,18 @@ enum { · 693 unmodified lines
694694 ETHTOOL_A_PHY_MAX = (__ETHTOOL_A_PHY_CNT - 1)
695695 };
696696
697+enum {
698+ ETHTOOL_A_TSCONFIG_UNSPEC,
699+ ETHTOOL_A_TSCONFIG_HEADER,
700+ ETHTOOL_A_TSCONFIG_HWTSTAMP_PROVIDER,
701+ ETHTOOL_A_TSCONFIG_TX_TYPES,
702+ ETHTOOL_A_TSCONFIG_RX_FILTERS,
703+ ETHTOOL_A_TSCONFIG_HWTSTAMP_FLAGS,
704+
705+ __ETHTOOL_A_TSCONFIG_CNT,
706+ ETHTOOL_A_TSCONFIG_MAX = (__ETHTOOL_A_TSCONFIG_CNT - 1)
707+};
708+
697709 enum {
698710 ETHTOOL_MSG_USER_NONE = 0,
699711 ETHTOOL_MSG_STRSET_GET = 1,
@@ -741,6 +753,8 @@ enum { · 41 unmodified lines
741753 ETHTOOL_MSG_MM_SET,
742754 ETHTOOL_MSG_MODULE_FW_FLASH_ACT,
743755 ETHTOOL_MSG_PHY_GET,
756+ ETHTOOL_MSG_TSCONFIG_GET,
757+ ETHTOOL_MSG_TSCONFIG_SET,
744758
745759 __ETHTOOL_MSG_USER_CNT,
746760 ETHTOOL_MSG_USER_MAX = (__ETHTOOL_MSG_USER_CNT - 1)
@@ -794,6 +808,8 @@ enum { · 47 unmodified lines
794808 ETHTOOL_MSG_MODULE_FW_FLASH_NTF,
795809 ETHTOOL_MSG_PHY_GET_REPLY,
796810 ETHTOOL_MSG_PHY_NTF,
811+ ETHTOOL_MSG_TSCONFIG_GET_REPLY,
812+ ETHTOOL_MSG_TSCONFIG_SET_REPLY,
797813
798814 __ETHTOOL_MSG_KERNEL_CNT,
799815 ETHTOOL_MSG_KERNEL_MAX = (__ETHTOOL_MSG_KERNEL_CNT - 1)