tcp_output: set initial TCP window size to 64K (speed improvement)

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
andip71 2016-08-01 11:13:06 +02:00 committed by prashantpaddune
parent 48bd579a3a
commit c4580b2626

View File

@ -281,6 +281,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);
}