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.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 7a8f950f5..69417ebf6 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1210,7 +1210,12 @@ static inline unsigned int tcp_packets_in_flight(const struct tcp_sock *tp)
1210 1210
1211static inline bool tcp_in_slow_start(const struct tcp_sock *tp) 1211static inline bool tcp_in_slow_start(const struct tcp_sock *tp)
1212{ 1212{
1213 return tp->snd_cwnd < tp->snd_ssthresh; 1213 // return tp->snd_cwnd < tp->snd_ssthresh;
1214 if(tp->exit_slow_start_flag!=1){
1215 return tp->snd_cwnd < tp->snd_ssthresh;
1216 }else{
1217 return 0;
1218 }
1214} 1219}
1215 1220
1216static inline bool tcp_in_initial_slowstart(const struct tcp_sock *tp) 1221static inline bool tcp_in_initial_slowstart(const struct tcp_sock *tp)