diff options
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 38509f047382..cda30ea354a2 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -196,6 +196,9 @@ extern void tcp_time_wait(struct sock *sk, int state, int timeo); | |||
196 | /* TCP thin-stream limits */ | 196 | /* TCP thin-stream limits */ |
197 | #define TCP_THIN_LINEAR_RETRIES 6 /* After 6 linear retries, do exp. backoff */ | 197 | #define TCP_THIN_LINEAR_RETRIES 6 /* After 6 linear retries, do exp. backoff */ |
198 | 198 | ||
199 | /* TCP initial congestion window as per draft-hkchu-tcpm-initcwnd-01 */ | ||
200 | #define TCP_INIT_CWND 10 | ||
201 | |||
199 | extern struct inet_timewait_death_row tcp_death_row; | 202 | extern struct inet_timewait_death_row tcp_death_row; |
200 | 203 | ||
201 | /* sysctl variables for tcp */ | 204 | /* sysctl variables for tcp */ |
@@ -799,15 +802,6 @@ static inline __u32 tcp_current_ssthresh(const struct sock *sk) | |||
799 | /* Use define here intentionally to get WARN_ON location shown at the caller */ | 802 | /* Use define here intentionally to get WARN_ON location shown at the caller */ |
800 | #define tcp_verify_left_out(tp) WARN_ON(tcp_left_out(tp) > tp->packets_out) | 803 | #define tcp_verify_left_out(tp) WARN_ON(tcp_left_out(tp) > tp->packets_out) |
801 | 804 | ||
802 | /* | ||
803 | * Convert RFC 3390 larger initial window into an equivalent number of packets. | ||
804 | * This is based on the numbers specified in RFC 5681, 3.1. | ||
805 | */ | ||
806 | static inline u32 rfc3390_bytes_to_packets(const u32 smss) | ||
807 | { | ||
808 | return smss <= 1095 ? 4 : (smss > 2190 ? 2 : 3); | ||
809 | } | ||
810 | |||
811 | extern void tcp_enter_cwr(struct sock *sk, const int set_ssthresh); | 805 | extern void tcp_enter_cwr(struct sock *sk, const int set_ssthresh); |
812 | extern __u32 tcp_init_cwnd(struct tcp_sock *tp, struct dst_entry *dst); | 806 | extern __u32 tcp_init_cwnd(struct tcp_sock *tp, struct dst_entry *dst); |
813 | 807 | ||
@@ -1074,8 +1068,6 @@ static inline int tcp_paws_reject(const struct tcp_options_received *rx_opt, | |||
1074 | return 1; | 1068 | return 1; |
1075 | } | 1069 | } |
1076 | 1070 | ||
1077 | #define TCP_CHECK_TIMER(sk) do { } while (0) | ||
1078 | |||
1079 | static inline void tcp_mib_init(struct net *net) | 1071 | static inline void tcp_mib_init(struct net *net) |
1080 | { | 1072 | { |
1081 | /* See RFC 2012 */ | 1073 | /* See RFC 2012 */ |
@@ -1404,7 +1396,7 @@ extern struct request_sock_ops tcp6_request_sock_ops; | |||
1404 | extern void tcp_v4_destroy_sock(struct sock *sk); | 1396 | extern void tcp_v4_destroy_sock(struct sock *sk); |
1405 | 1397 | ||
1406 | extern int tcp_v4_gso_send_check(struct sk_buff *skb); | 1398 | extern int tcp_v4_gso_send_check(struct sk_buff *skb); |
1407 | extern struct sk_buff *tcp_tso_segment(struct sk_buff *skb, int features); | 1399 | extern struct sk_buff *tcp_tso_segment(struct sk_buff *skb, u32 features); |
1408 | extern struct sk_buff **tcp_gro_receive(struct sk_buff **head, | 1400 | extern struct sk_buff **tcp_gro_receive(struct sk_buff **head, |
1409 | struct sk_buff *skb); | 1401 | struct sk_buff *skb); |
1410 | extern struct sk_buff **tcp4_gro_receive(struct sk_buff **head, | 1402 | extern struct sk_buff **tcp4_gro_receive(struct sk_buff **head, |