aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 75a00c80bdda..0bdc3f640247 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1386,6 +1386,14 @@ static inline void tcp_highest_sack_combine(struct sock *sk,
1386 tcp_sk(sk)->highest_sack = new; 1386 tcp_sk(sk)->highest_sack = new;
1387} 1387}
1388 1388
1389/* Determines whether this is a thin stream (which may suffer from
1390 * increased latency). Used to trigger latency-reducing mechanisms.
1391 */
1392static inline unsigned int tcp_stream_is_thin(struct tcp_sock *tp)
1393{
1394 return tp->packets_out < 4 && !tcp_in_initial_slowstart(tp);
1395}
1396
1389/* /proc */ 1397/* /proc */
1390enum tcp_seq_states { 1398enum tcp_seq_states {
1391 TCP_SEQ_STATE_LISTENING, 1399 TCP_SEQ_STATE_LISTENING,