tcp: introduce tcp_rto_delta_us() helper for xmit timer fix
authorNeal Cardwell <ncardwell@google.com>
Thu, 27 Jul 2017 14:01:20 +0000 (10:01 -0400)
committerWilly Tarreau <w@1wt.eu>
Wed, 1 Nov 2017 21:12:42 +0000 (22:12 +0100)
commit42a858e036bb26cb559157393b7890cabe70bfc2
treeb6a7533e15b6e8f919c820e52fbb7f458950240c
parentecce864b83040205ad7b7b1d44c73ad51f316914
tcp: introduce tcp_rto_delta_us() helper for xmit timer fix

commit e1a10ef7fa876f8510aaec36ea5c0cf34baba410 upstream.

Pure refactor. This helper will be required in the xmit timer fix
later in the patch series. (Because the TLP logic will want to make
this calculation.)

[This version of the commit was compiled and briefly tested
based on top of v3.10.107.]

Change-Id: I1ccfba0b00465454bf5ce22e6fef5f7b5dd94d15
Fixes: 6ba8a3b19e76 ("tcp: Tail loss probe (TLP)")
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Nandita Dukkipati <nanditad@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
include/net/tcp.h
net/ipv4/tcp_input.c