diff options
author | Richard Cochran <richardcochran@gmail.com> | 2011-09-19 21:43:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-09-26 16:02:46 -0400 |
commit | 3ce23fa9780b70525932c5e4b5ac401c67390fae (patch) | |
tree | 840592386fc253e74eaa6725a3ad2359f0ad2b72 /include/linux/net_tstamp.h | |
parent | 49b3fd4aff7ede794d4fe50b80095eb33cc9d911 (diff) |
net: introduce ptp one step time stamp mode for sync packets
The IEEE 1588 standard (PTP) has a provision for a "one step" mode, where
time stamps on outgoing event packets are inserted into the packet by the
hardware on the fly. This patch adds a new flag for the SIOCSHWTSTAMP
ioctl that lets user space programs request this mode.
Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/net_tstamp.h')
-rw-r--r-- | include/linux/net_tstamp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/net_tstamp.h b/include/linux/net_tstamp.h index a3b8546354ac..3df0984cd0d5 100644 --- a/include/linux/net_tstamp.h +++ b/include/linux/net_tstamp.h | |||
@@ -60,6 +60,15 @@ enum { | |||
60 | * before sending the packet. | 60 | * before sending the packet. |
61 | */ | 61 | */ |
62 | HWTSTAMP_TX_ON, | 62 | HWTSTAMP_TX_ON, |
63 | |||
64 | /* | ||
65 | * Enables time stamping for outgoing packets just as | ||
66 | * HWTSTAMP_TX_ON does, but also enables time stamp insertion | ||
67 | * directly into Sync packets. In this case, transmitted Sync | ||
68 | * packets will not received a time stamp via the socket error | ||
69 | * queue. | ||
70 | */ | ||
71 | HWTSTAMP_TX_ONESTEP_SYNC, | ||
63 | }; | 72 | }; |
64 | 73 | ||
65 | /* possible values for hwtstamp_config->rx_filter */ | 74 | /* possible values for hwtstamp_config->rx_filter */ |