]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commite1c8a607b28190cd09a271508aa3025d3c2f312e
tree83f4b5e777a13535434be99bee2e764a6677e647
parent4ed2d765dfaccff5ebdac68e2064b59125033a3b
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