]> git.baikalelectronics.ru Git - kernel.git/commit
net-timestamp: ACK timestamp for bytestreams
authorWillem de Bruijn <willemb@google.com>
Tue, 5 Aug 2014 02:11:50 +0000 (22:11 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Aug 2014 23:35:54 +0000 (16:35 -0700)
commit97d73b69c714550a0e7cdbc31a0b2696b63a778d
tree83f4b5e777a13535434be99bee2e764a6677e647
parent9a28431b5a0633595107f2b99fd196f56ed89d5f
net-timestamp: ACK timestamp for bytestreams

Add SOF_TIMESTAMPING_TX_ACK, a request for a tstamp when the last byte
in the send() call is acknowledged. It implements the feature for TCP.

The timestamp is generated when the TCP socket cumulative ACK is moved
beyond the tracked seqno for the first time. The feature ignores SACK
and FACK, because those acknowledge the specific byte, but not
necessarily the entire contents of the buffer up to that byte.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
include/uapi/linux/errqueue.h
include/uapi/linux/net_tstamp.h
net/ipv4/tcp_input.c
net/socket.c