diff options
author | 2025-03-08 23:03:12 +0800 | |
---|---|---|
committer | 2025-03-08 23:03:12 +0800 | |
commit | d4031f89f77ea0725765766f697d298693257d54 (patch) | |
tree | 8b1dfe11cd05a2ee3aac3338d1b1dddccae8f083 /include | |
parent | e558676b763b33030cbf93d8238984aa4c01c6fa (diff) | |
download | ohosKernel-master.tar.gz ohosKernel-master.zip |
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/tcp.h | 6 | ||||
-rw-r--r-- | include/net/tcp.h | 7 |
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 | ||
1211 | static inline bool tcp_in_slow_start(const struct tcp_sock *tp) | 1211 | static 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 | ||
1216 | static inline bool tcp_in_initial_slowstart(const struct tcp_sock *tp) | 1221 | static inline bool tcp_in_initial_slowstart(const struct tcp_sock *tp) |