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
694 ETHTOOL_A_PHY_MAX = (__ETHTOOL_A_PHY_CNT - 1)694 ETHTOOL_A_PHY_MAX = (__ETHTOOL_A_PHY_CNT - 1)
695};695};
696 696
697enum {
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
697enum {709enum {
698 ETHTOOL_MSG_USER_NONE = 0,710 ETHTOOL_MSG_USER_NONE = 0,
699 ETHTOOL_MSG_STRSET_GET = 1,711 ETHTOOL_MSG_STRSET_GET = 1,
@@ -741,6 +753,8 @@ enum { · 41 unmodified lines
741 ETHTOOL_MSG_MM_SET,753 ETHTOOL_MSG_MM_SET,
742 ETHTOOL_MSG_MODULE_FW_FLASH_ACT,754 ETHTOOL_MSG_MODULE_FW_FLASH_ACT,
743 ETHTOOL_MSG_PHY_GET,755 ETHTOOL_MSG_PHY_GET,
756 ETHTOOL_MSG_TSCONFIG_GET,
757 ETHTOOL_MSG_TSCONFIG_SET,
744 758
745 __ETHTOOL_MSG_USER_CNT,759 __ETHTOOL_MSG_USER_CNT,
746 ETHTOOL_MSG_USER_MAX = (__ETHTOOL_MSG_USER_CNT - 1)760 ETHTOOL_MSG_USER_MAX = (__ETHTOOL_MSG_USER_CNT - 1)
@@ -794,6 +808,8 @@ enum { · 47 unmodified lines
794 ETHTOOL_MSG_MODULE_FW_FLASH_NTF,808 ETHTOOL_MSG_MODULE_FW_FLASH_NTF,
795 ETHTOOL_MSG_PHY_GET_REPLY,809 ETHTOOL_MSG_PHY_GET_REPLY,
796 ETHTOOL_MSG_PHY_NTF,810 ETHTOOL_MSG_PHY_NTF,
811 ETHTOOL_MSG_TSCONFIG_GET_REPLY,
812 ETHTOOL_MSG_TSCONFIG_SET_REPLY,
797 813
798 __ETHTOOL_MSG_KERNEL_CNT,814 __ETHTOOL_MSG_KERNEL_CNT,
799 ETHTOOL_MSG_KERNEL_MAX = (__ETHTOOL_MSG_KERNEL_CNT - 1)815 ETHTOOL_MSG_KERNEL_MAX = (__ETHTOOL_MSG_KERNEL_CNT - 1)