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
596 * @ETH_SS_LINK_MODES: link mode names596 * @ETH_SS_LINK_MODES: link mode names
597 * @ETH_SS_MSG_CLASSES: debug message class names597 * @ETH_SS_MSG_CLASSES: debug message class names
598 * @ETH_SS_WOL_MODES: wake-on-lan modes598 * @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
599 */602 */
600enum ethtool_stringset {603enum ethtool_stringset {
601 ETH_SS_TEST = 0,604 ETH_SS_TEST = 0,
@@ -610,6 +613,9 @@ enum ethtool_stringset { · 8 unmodified lines
610 ETH_SS_LINK_MODES,613 ETH_SS_LINK_MODES,
611 ETH_SS_MSG_CLASSES,614 ETH_SS_MSG_CLASSES,
612 ETH_SS_WOL_MODES,615 ETH_SS_WOL_MODES,
616 ETH_SS_SOF_TIMESTAMPING,
617 ETH_SS_TS_TX_TYPES,
618 ETH_SS_TS_RX_FILTERS,
613 619
614 /* add new constants above here */620 /* add new constants above here */
615 ETH_SS_COUNT621 ETH_SS_COUNT
include/uapi/linux/net_tstamp.h+6−0
@@ -98,6 +98,9 @@ enum hwtstamp_tx_types { · 97 unmodified lines
98 * receive a time stamp via the socket error queue.98 * receive a time stamp via the socket error queue.
99 */99 */
100 HWTSTAMP_TX_ONESTEP_P2P,100 HWTSTAMP_TX_ONESTEP_P2P,
101
102 /* add new constants above here */
103 __HWTSTAMP_TX_CNT
101};104};
102 105
103/* possible values for hwtstamp_config->rx_filter */106/* possible values for hwtstamp_config->rx_filter */
@@ -140,6 +143,9 @@ enum hwtstamp_rx_filters { · 36 unmodified lines
140 143
141 /* NTP, UDP, all versions and packet modes */144 /* NTP, UDP, all versions and packet modes */
142 HWTSTAMP_FILTER_NTP_ALL,145 HWTSTAMP_FILTER_NTP_ALL,
146
147 /* add new constants above here */
148 __HWTSTAMP_FILTER_CNT
143};149};
144 150
145/* SCM_TIMESTAMPING_PKTINFO control message */151/* SCM_TIMESTAMPING_PKTINFO control message */