From 72981213e3b0129dcc5293e13be5378223669119 Mon Sep 17 00:00:00 2001 From: andip71 Date: Mon, 1 Aug 2016 11:13:06 +0200 Subject: [PATCH] tcp_output: set initial TCP window size to 64K (speed improvement) Signed-off-by: engstk Signed-off-by: Joe Maples --- net/ipv4/tcp_output.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index e65c211d3f4b..afa65b099008 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -259,6 +259,9 @@ void tcp_select_initial_window(int __space, __u32 mss, *rcv_wnd = min(*rcv_wnd, init_rcv_wnd * mss); } + /* Lock the initial TCP window size to 64K*/ + *rcv_wnd = 64240; + /* Set the clamp no higher than max representable value */ (*window_clamp) = min(65535U << (*rcv_wscale), *window_clamp); }