aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2014-07-14 17:55:30 -0400
committerDavid S. Miller <davem@davemloft.net>2014-07-15 19:32:45 -0400
commit26c4fdb0528ae7c4be9fbc8a8210f3b410e6b5aa (patch)
treefdbf59a354779f01dac0732fa033d5d8a721c399 /include/linux/skbuff.h
parent11878b40ed5c5bc20d6a115bae156a5b90b0fb3e (diff)
net-timestamp: document deprecated syststamp
The SO_TIMESTAMPING API defines option SOF_TIMESTAMPING_SYS_HW. This feature is deprecated. It should not be implemented by new device drivers. Existing drivers do not implement it, either -- with one exception. Driver developers are encouraged to expose the NIC hw clock as a PTP HW clock source, instead, and synchronize system time to the HW source. The control flag cannot be removed due to being part of the ABI, nor can the structure scm_timestamping that is returned. Due to the one legacy driver, the internal datapath and structure are not removed. This patch only clearly marks the interface as deprecated. Device drivers should always return a syststamp value of zero. Signed-off-by: Willem de Bruijn <willemb@google.com> ---- We can consider adding a WARN_ON_ONCE in__sock_recv_timestamp if non-zero syststamp is encountered Acked-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 890fb3307dd6..369430340ed9 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -211,7 +211,7 @@ static inline void skb_frag_size_sub(skb_frag_t *frag, int delta)
211 * struct skb_shared_hwtstamps - hardware time stamps 211 * struct skb_shared_hwtstamps - hardware time stamps
212 * @hwtstamp: hardware time stamp transformed into duration 212 * @hwtstamp: hardware time stamp transformed into duration
213 * since arbitrary point in time 213 * since arbitrary point in time
214 * @syststamp: hwtstamp transformed to system time base 214 * @syststamp: hwtstamp transformed to system time base (deprecated)
215 * 215 *
216 * Software time stamps generated by ktime_get_real() are stored in 216 * Software time stamps generated by ktime_get_real() are stored in
217 * skb->tstamp. The relation between the different kinds of time 217 * skb->tstamp. The relation between the different kinds of time
@@ -222,7 +222,9 @@ static inline void skb_frag_size_sub(skb_frag_t *frag, int delta)
222 * syststamp/tstamp/"syststamp from other device" comparison is 222 * syststamp/tstamp/"syststamp from other device" comparison is
223 * limited by the accuracy of the transformation into system time 223 * limited by the accuracy of the transformation into system time
224 * base. This depends on the device driver and its underlying 224 * base. This depends on the device driver and its underlying
225 * hardware. 225 * hardware. The syststamp implementation is deprecated in favor
226 * of hwtstamps and hw PTP clock sources exposed directly to
227 * userspace.
226 * 228 *
227 * hwtstamps can only be compared against other hwtstamps from 229 * hwtstamps can only be compared against other hwtstamps from
228 * the same device. 230 * the same device.