aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r--net/ipv4/tcp_input.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 1ccc97b368c7..ba8a8e3464aa 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -1917,6 +1917,11 @@ static inline void tcp_init_undo(struct tcp_sock *tp)
1917 tp->undo_retrans = tp->retrans_out ? : -1; 1917 tp->undo_retrans = tp->retrans_out ? : -1;
1918} 1918}
1919 1919
1920static bool tcp_is_rack(const struct sock *sk)
1921{
1922 return sock_net(sk)->ipv4.sysctl_tcp_recovery & TCP_RACK_LOSS_DETECTION;
1923}
1924
1920/* If we detect SACK reneging, forget all SACK information 1925/* If we detect SACK reneging, forget all SACK information
1921 * and reset tags completely, otherwise preserve SACKs. If receiver 1926 * and reset tags completely, otherwise preserve SACKs. If receiver
1922 * dropped its ofo queue, we will know this due to reneging detection. 1927 * dropped its ofo queue, we will know this due to reneging detection.
@@ -2031,11 +2036,6 @@ static inline int tcp_dupack_heuristics(const struct tcp_sock *tp)
2031 return tp->sacked_out + 1; 2036 return tp->sacked_out + 1;
2032} 2037}
2033 2038
2034static bool tcp_is_rack(const struct sock *sk)
2035{
2036 return sock_net(sk)->ipv4.sysctl_tcp_recovery & TCP_RACK_LOSS_DETECTION;
2037}
2038
2039/* Linux NewReno/SACK/ECN state machine. 2039/* Linux NewReno/SACK/ECN state machine.
2040 * -------------------------------------- 2040 * --------------------------------------
2041 * 2041 *