Message ID | 1420824719-28848-6-git-send-email-willemb@google.com |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
On Fri, Jan 09, 2015 at 12:31:59PM -0500, Willem de Bruijn wrote: > From: Willem de Bruijn <willemb@google.com> > > The number of timestamping points along the transmit path has grown, > as have the options. Preferred behavior is to request timestamps with > ID, without data (which enables batching) and for all supported > timestamp points. Define a short option that enables all these > defaults. This "preferred behavior" is subjective, and it depends on the application. I am sure it reflects your own interest, but for people doing PTP over UDP or raw, it is a bit misleading. I would drop this default and just let applications define their own. Thanks, Richard -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Sun, Jan 11, 2015 at 3:32 PM, Richard Cochran <richardcochran@gmail.com> wrote: > On Fri, Jan 09, 2015 at 12:31:59PM -0500, Willem de Bruijn wrote: >> From: Willem de Bruijn <willemb@google.com> >> >> The number of timestamping points along the transmit path has grown, >> as have the options. Preferred behavior is to request timestamps with >> ID, without data (which enables batching) and for all supported >> timestamp points. Define a short option that enables all these >> defaults. > > This "preferred behavior" is subjective, and it depends on the > application. I am sure it reflects your own interest, but for people > doing PTP over UDP or raw, it is a bit misleading. > > I would drop this default and just let applications define their own. Okay. I indeed hadn't considered that use-case. Just so I understand: ptp has no use for the sw tstamps that would be generated with this flag, but is otherwise okay with enabling counters to order tx timestamps (OPT_ID) and disabling payload (OPT_TSONLY)? In the documentation, I would like to strongly suggest all processes to enable these, even in absence of this default. because that is more robust wrt the sysctl (if merged). > > Thanks, Thanks for taking a look at the patches. > Richard -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Sun, Jan 11, 2015 at 08:49:00PM -0500, Willem de Bruijn wrote: > Just so I understand: ptp has no use for the sw tstamps > that would be generated with this flag, but is otherwise > okay with enabling counters to order tx timestamps > (OPT_ID) and disabling payload (OPT_TSONLY)? Yes. > In the documentation, I would like to strongly suggest all > processes to enable these, even in absence of this default. > because that is more robust wrt the sysctl (if merged). Sounds good. Thanks, Richard -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/include/uapi/linux/net_tstamp.h b/include/uapi/linux/net_tstamp.h index 6d1abea..c371ce2 100644 --- a/include/uapi/linux/net_tstamp.h +++ b/include/uapi/linux/net_tstamp.h @@ -27,6 +27,14 @@ enum { SOF_TIMESTAMPING_OPT_TSONLY = (1<<11), SOF_TIMESTAMPING_LAST = SOF_TIMESTAMPING_OPT_TSONLY, + + SOF_TIMESTAMPING_TX = SOF_TIMESTAMPING_TX_HARDWARE | + SOF_TIMESTAMPING_TX_SOFTWARE | + SOF_TIMESTAMPING_TX_SCHED | + SOF_TIMESTAMPING_TX_ACK | + SOF_TIMESTAMPING_OPT_ID | + SOF_TIMESTAMPING_OPT_TSONLY, + SOF_TIMESTAMPING_MASK = (SOF_TIMESTAMPING_LAST - 1) | SOF_TIMESTAMPING_LAST };