diff options
author | Richard Cochran <richardcochran@gmail.com> | 2019-12-26 05:16:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-26 06:51:34 +0300 |
commit | b6fd7b96366769651ab23988607ce9c5c9042cdb (patch) | |
tree | 7af5ff4f17fbc32e9549d5df39e1d0d380597053 /include | |
parent | 1dca22b1842136f57e9bd60fefd1715c22ff1874 (diff) | |
download | linux-b6fd7b96366769651ab23988607ce9c5c9042cdb.tar.xz |
net: Introduce peer to peer one step PTP time stamping.
The 1588 standard defines one step operation for both Sync and
PDelay_Resp messages. Up until now, hardware with P2P one step has
been rare, and kernel support was lacking. This patch adds support of
the mode in anticipation of new hardware developments.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/net_tstamp.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/uapi/linux/net_tstamp.h b/include/uapi/linux/net_tstamp.h index e5b39721c6e4..f96e650d0af9 100644 --- a/include/uapi/linux/net_tstamp.h +++ b/include/uapi/linux/net_tstamp.h @@ -90,6 +90,14 @@ enum hwtstamp_tx_types { * queue. */ HWTSTAMP_TX_ONESTEP_SYNC, + + /* + * Same as HWTSTAMP_TX_ONESTEP_SYNC, but also enables time + * stamp insertion directly into PDelay_Resp packets. In this + * case, neither transmitted Sync nor PDelay_Resp packets will + * receive a time stamp via the socket error queue. + */ + HWTSTAMP_TX_ONESTEP_P2P, }; /* possible values for hwtstamp_config->rx_filter */ |