]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: add tp->tcp_mstamp field
authorEric Dumazet <edumazet@google.com>
Tue, 25 Apr 2017 17:15:32 +0000 (10:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Apr 2017 18:44:36 +0000 (14:44 -0400)
commitbde8256f70ad58375c75d6684d7328e819dfd31b
treeb01b75a8c41fe86ab2ce1fc88198c4f347268171
parentdd86dbd31556ba8d6bb1617b8b269a0bbe17f5eb
tcp: add tp->tcp_mstamp field

We want to use precise timestamps in TCP stack, but we do not
want to call possibly expensive kernel time services too often.

tp->tcp_mstamp is guaranteed to be updated once per incoming packet.

We will use it in the following patches, removing specific
skb_mstamp_get() calls, and removing ack_time from
struct tcp_sacktag_state.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tcp.h
net/ipv4/tcp_input.c