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);  #endif  #define TCP_RTO_MAX	((unsigned)(120*HZ))  #define TCP_RTO_MIN	((unsigned)(HZ/5)) -#define TCP_TIMEOUT_INIT ((unsigned)(3*HZ))	/* RFC 1122 initial RTO value	*/ +#define TCP_TIMEOUT_INIT ((unsigned)(1*HZ))	/* RFC2988bis initial RTO value	*/ +#define TCP_TIMEOUT_FALLBACK ((unsigned)(3*HZ))	/* RFC 1122 initial RTO value, now +						 * used as a fallback RTO for the +						 * initial data transmission if no +						 * valid RTT sample has been acquired, +						 * most likely due to retrans in 3WHS. +						 */  #define TCP_RESOURCE_PROBE_INTERVAL ((unsigned)(HZ/2U)) /* Maximal interval between probes  					                 * for local resources. @@ -295,7 +301,7 @@ static inline void tcp_synq_overflow(struct sock *sk)  static inline int tcp_synq_no_recent_overflow(const struct sock *sk)  {  	unsigned long last_overflow = tcp_sk(sk)->rx_opt.ts_recent_stamp; -	return time_after(jiffies, last_overflow + TCP_TIMEOUT_INIT); +	return time_after(jiffies, last_overflow + TCP_TIMEOUT_FALLBACK);  }  extern struct proto tcp_prot; @@ -508,6 +514,7 @@ extern void tcp_initialize_rcv_mss(struct sock *sk);  extern int tcp_mtu_to_mss(struct sock *sk, int pmtu);  extern int tcp_mss_to_mtu(struct sock *sk, int mss);  extern void tcp_mtup_init(struct sock *sk); +extern void tcp_valid_rtt_meas(struct sock *sk, u32 seq_rtt);  static inline void tcp_bound_rto(const struct sock *sk)  {  |