]> 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)
commitdf5bf58cf39109530ed99ede7f7d74f46fc339e3
tree83f4b5e777a13535434be99bee2e764a6677e647
parent1067b9259770f8fa0bb1ca96cd7d8dc83aff9a21
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