diff options
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index cda30ea354a2..149a415d1e0a 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -122,7 +122,13 @@ extern void tcp_time_wait(struct sock *sk, int state, int timeo); | |||
122 | #endif | 122 | #endif |
123 | #define TCP_RTO_MAX ((unsigned)(120*HZ)) | 123 | #define TCP_RTO_MAX ((unsigned)(120*HZ)) |
124 | #define TCP_RTO_MIN ((unsigned)(HZ/5)) | 124 | #define TCP_RTO_MIN ((unsigned)(HZ/5)) |
125 | #define TCP_TIMEOUT_INIT ((unsigned)(3*HZ)) /* RFC 1122 initial RTO value */ | 125 | #define TCP_TIMEOUT_INIT ((unsigned)(1*HZ)) /* RFC2988bis initial RTO value */ |
126 | #define TCP_TIMEOUT_FALLBACK ((unsigned)(3*HZ)) /* RFC 1122 initial RTO value, now | ||
127 | * used as a fallback RTO for the | ||
128 | * initial data transmission if no | ||
129 | * valid RTT sample has been acquired, | ||
130 | * most likely due to retrans in 3WHS. | ||
131 | */ | ||
126 | 132 | ||
127 | #define TCP_RESOURCE_PROBE_INTERVAL ((unsigned)(HZ/2U)) /* Maximal interval between probes | 133 | #define TCP_RESOURCE_PROBE_INTERVAL ((unsigned)(HZ/2U)) /* Maximal interval between probes |
128 | * for local resources. | 134 | * for local resources. |
@@ -295,7 +301,7 @@ static inline void tcp_synq_overflow(struct sock *sk) | |||
295 | static inline int tcp_synq_no_recent_overflow(const struct sock *sk) | 301 | static inline int tcp_synq_no_recent_overflow(const struct sock *sk) |
296 | { | 302 | { |
297 | unsigned long last_overflow = tcp_sk(sk)->rx_opt.ts_recent_stamp; | 303 | unsigned long last_overflow = tcp_sk(sk)->rx_opt.ts_recent_stamp; |
298 | return time_after(jiffies, last_overflow + TCP_TIMEOUT_INIT); | 304 | return time_after(jiffies, last_overflow + TCP_TIMEOUT_FALLBACK); |
299 | } | 305 | } |
300 | 306 | ||
301 | extern struct proto tcp_prot; | 307 | extern struct proto tcp_prot; |
@@ -508,6 +514,7 @@ extern void tcp_initialize_rcv_mss(struct sock *sk); | |||
508 | extern int tcp_mtu_to_mss(struct sock *sk, int pmtu); | 514 | extern int tcp_mtu_to_mss(struct sock *sk, int pmtu); |
509 | extern int tcp_mss_to_mtu(struct sock *sk, int mss); | 515 | extern int tcp_mss_to_mtu(struct sock *sk, int mss); |
510 | extern void tcp_mtup_init(struct sock *sk); | 516 | extern void tcp_mtup_init(struct sock *sk); |
517 | extern void tcp_valid_rtt_meas(struct sock *sk, u32 seq_rtt); | ||
511 | 518 | ||
512 | static inline void tcp_bound_rto(const struct sock *sk) | 519 | static inline void tcp_bound_rto(const struct sock *sk) |
513 | { | 520 | { |