Skip to content

Commit

Permalink
tcp: update also tcp_output with regard to RFC 5681
Browse files Browse the repository at this point in the history
Thanks to Ilpo Jarvinen, this updates also the initial window
setting for tcp_output with regard to RFC 5681.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Gerrit Renker authored and David S. Miller committed Sep 2, 2010
1 parent fa50d64 commit 0705c6f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions net/ipv4/tcp_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,16 +224,10 @@ void tcp_select_initial_window(int __space, __u32 mss,
}
}

/* Set initial window to value enough for senders,
* following RFC2414. Senders, not following this RFC,
* will be satisfied with 2.
*/
/* Set initial window to value enough for senders, following RFC5681. */
if (mss > (1 << *rcv_wscale)) {
int init_cwnd = 4;
if (mss > 1460 * 3)
init_cwnd = 2;
else if (mss > 1460)
init_cwnd = 3;
int init_cwnd = rfc3390_bytes_to_packets(mss);

/* when initializing use the value from init_rcv_wnd
* rather than the default from above
*/
Expand Down

0 comments on commit 0705c6f

Please sign in to comment.