History

ethtool: add timestamping related string sets

Add three string sets related to timestamping information: ETH_SS_SOF_TIMESTAMPING: SOF_TIMESTAMPING_* flags ETH_SS_TS_TX_TYPES: timestamping Tx types ETH_SS_TS_RX_FILTERS: timestamping Rx filters These will be used for TIMESTAMP_GET request. v2: avoid compiler warning ("enumeration value not handled in switch") in net_hwtstamp_validate() v3: omit dash in Tx type names ("one-step-*" -> "onestep-*"), suggested by Richard Cochran

Michal Kubecek committed 6 years ago

Commit f76510b1 parent 6c5bc8f6 files · +87 −0Browse files

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

Unified · Split

2 files
  1. include/uapi/linux/ethtool.h +6 −0
  2. include/uapi/linux/net_tstamp.h +6 −0
include/uapi/linux/ethtool.h+6−0
@@ -596,6 +596,9 @@ struct ethtool_pauseparam { · 595 unmodified lines
596596 * @ETH_SS_LINK_MODES: link mode names
597597 * @ETH_SS_MSG_CLASSES: debug message class names
598598 * @ETH_SS_WOL_MODES: wake-on-lan modes
599+ * @ETH_SS_SOF_TIMESTAMPING: SOF_TIMESTAMPING_* flags
600+ * @ETH_SS_TS_TX_TYPES: timestamping Tx types
601+ * @ETH_SS_TS_RX_FILTERS: timestamping Rx filters
599602 */
600603 enum ethtool_stringset {
601604 ETH_SS_TEST = 0,
@@ -610,6 +613,9 @@ enum ethtool_stringset { · 8 unmodified lines
610613 ETH_SS_LINK_MODES,
611614 ETH_SS_MSG_CLASSES,
612615 ETH_SS_WOL_MODES,
616+ ETH_SS_SOF_TIMESTAMPING,
617+ ETH_SS_TS_TX_TYPES,
618+ ETH_SS_TS_RX_FILTERS,
613619
614620 /* add new constants above here */
615621 ETH_SS_COUNT
include/uapi/linux/net_tstamp.h+6−0
@@ -98,6 +98,9 @@ enum hwtstamp_tx_types { · 97 unmodified lines
9898 * receive a time stamp via the socket error queue.
9999 */
100100 HWTSTAMP_TX_ONESTEP_P2P,
101+
102+ /* add new constants above here */
103+ __HWTSTAMP_TX_CNT
101104 };
102105
103106 /* possible values for hwtstamp_config->rx_filter */
@@ -140,6 +143,9 @@ enum hwtstamp_rx_filters { · 36 unmodified lines
140143
141144 /* NTP, UDP, all versions and packet modes */
142145 HWTSTAMP_FILTER_NTP_ALL,
146+
147+ /* add new constants above here */
148+ __HWTSTAMP_FILTER_CNT
143149 };
144150
145151 /* SCM_TIMESTAMPING_PKTINFO control message */