tcp_output: set initial TCP window size to 64K (speed improvement)
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
parent
48bd579a3a
commit
c4580b2626
|
@ -281,6 +281,9 @@ void tcp_select_initial_window(int __space, __u32 mss,
|
||||||
*rcv_wnd = min(*rcv_wnd, init_rcv_wnd * 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 */
|
/* Set the clamp no higher than max representable value */
|
||||||
(*window_clamp) = min(65535U << (*rcv_wscale), *window_clamp);
|
(*window_clamp) = min(65535U << (*rcv_wscale), *window_clamp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user