netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net-timestamp: Fix a documentation typo
@ 2014-11-24 20:02 Andy Lutomirski
  2014-11-24 22:11 ` Willem de Bruijn
  2014-11-25 18:35 ` David Miller
  0 siblings, 2 replies; 7+ messages in thread
From: Andy Lutomirski @ 2014-11-24 20:02 UTC (permalink / raw)
  To: Network Development, David S. Miller; +Cc: Andy Lutomirski, Willem de Bruijn

SOF_TIMESTAMPING_OPT_ID puts the id in ee_data, not ee_info.

Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
---

While I'm here, the docs say:

    In practice, it [ee_data] is a monotonically increasing u32 (that wraps).

Is user code supposed to rely on this and, further, on the fact that the
counter starts at zero?  If not, how else is user code supposed to match
outgoing data to timestamps?

Also, is it intentional that the payload data associated with the tx
timestamp is (I think) the full outgoing packet including lower-layer
headers?

And, finally, would it be possible to attach IP_PKTINFO to the looped
timestamp?  That way I could finally update my fancy ping program to
track which outgoing interface was used for a request.

 Documentation/networking/timestamping.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/networking/timestamping.txt b/Documentation/networking/timestamping.txt
index 412f45ca2d73..1d6d02d6ba52 100644
--- a/Documentation/networking/timestamping.txt
+++ b/Documentation/networking/timestamping.txt
@@ -136,7 +136,7 @@ SOF_TIMESTAMPING_OPT_ID:
 
   This option is implemented only for transmit timestamps. There, the
   timestamp is always looped along with a struct sock_extended_err.
-  The option modifies field ee_info to pass an id that is unique
+  The option modifies field ee_data to pass an id that is unique
   among all possibly concurrently outstanding timestamp requests for
   that socket. In practice, it is a monotonically increasing u32
   (that wraps).
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-11-25 18:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-24 20:02 [PATCH] net-timestamp: Fix a documentation typo Andy Lutomirski
2014-11-24 22:11 ` Willem de Bruijn
2014-11-24 22:18   ` Andy Lutomirski
2014-11-24 22:38     ` Willem de Bruijn
2014-11-25  8:33       ` Richard Cochran
2014-11-25 18:01       ` Willem de Bruijn
2014-11-25 18:35 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).