Skip to content

Commit

Permalink
net: introduce ptp one step time stamp mode for sync packets
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Richard Cochran authored and David S. Miller committed Sep 26, 2011
1 parent 49b3fd4 commit 3ce23fa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/linux/net_tstamp.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ enum {
* before sending the packet.
*/
HWTSTAMP_TX_ON,

/*
* Enables time stamping for outgoing packets just as
* HWTSTAMP_TX_ON does, but also enables time stamp insertion
* directly into Sync packets. In this case, transmitted Sync
* packets will not received a time stamp via the socket error
* queue.
*/
HWTSTAMP_TX_ONESTEP_SYNC,
};

/* possible values for hwtstamp_config->rx_filter */
Expand Down

0 comments on commit 3ce23fa

Please sign in to comment.