diff options
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/tcp.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index a64022199b62..11dbacc886c0 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
| @@ -781,17 +781,11 @@ static inline __u32 tcp_current_ssthresh(const struct sock *sk) | |||
| 781 | 781 | ||
| 782 | /* | 782 | /* |
| 783 | * Convert RFC 3390 larger initial window into an equivalent number of packets. | 783 | * Convert RFC 3390 larger initial window into an equivalent number of packets. |
| 784 | * | 784 | * This is based on the numbers specified in RFC 5681, 3.1. |
| 785 | * John Heffner states: | ||
| 786 | * | ||
| 787 | * The RFC specifies a window of no more than 4380 bytes | ||
| 788 | * unless 2*MSS > 4380. Reading the pseudocode in the RFC | ||
| 789 | * is a bit misleading because they use a clamp at 4380 bytes | ||
| 790 | * rather than a multiplier in the relevant range. | ||
| 791 | */ | 785 | */ |
| 792 | static inline u32 rfc3390_bytes_to_packets(const u32 smss) | 786 | static inline u32 rfc3390_bytes_to_packets(const u32 smss) |
| 793 | { | 787 | { |
| 794 | return smss <= 1095 ? 4 : (smss > 1460 ? 2 : 3); | 788 | return smss <= 1095 ? 4 : (smss > 2190 ? 2 : 3); |
| 795 | } | 789 | } |
| 796 | 790 | ||
| 797 | extern void tcp_enter_cwr(struct sock *sk, const int set_ssthresh); | 791 | extern void tcp_enter_cwr(struct sock *sk, const int set_ssthresh); |
