aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/tcp.h6
-rw-r--r--include/net/tcp.h7
2 files changed, 12 insertions, 1 deletions
diff --git a/include/linux/tcp.h b/include/linux/tcp.h
index 5feb49ee9..f2be9dbaa 100644
--- a/include/linux/tcp.h
+++ b/include/linux/tcp.h
@@ -471,12 +471,18 @@ struct tcp_sock {
471 u32 mytcp_bytes_send; 471 u32 mytcp_bytes_send;
472 u32 mytcp_acked_bytes; 472 u32 mytcp_acked_bytes;
473 u32 mytcp_acked_seq_last; 473 u32 mytcp_acked_seq_last;
474
475 // add
476 int exit_slow_start_flag;
474 477
475 // new 478 // new
476 u32 my_ip_rtt; 479 u32 my_ip_rtt;
477 480
481 u32 mytcp_average_rtt;
482
478 u32 my_last_ack; 483 u32 my_last_ack;
479 u32 my_ack_seq_gap; 484 u32 my_ack_seq_gap;
485 u32 mytcp_this_rtt_count;
480 // new ended 486 // new ended
481}; 487};
482 488
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)