Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
tcp_output: set initial TCP window size to 64K (speed improvement)
Browse files Browse the repository at this point in the history
Signed-off-by: engstk <[email protected]>
Signed-off-by: Joe Maples <[email protected]>
  • Loading branch information
andip71 authored and radcolor committed Dec 10, 2019
1 parent 7d15c9e commit 7298121
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/ipv4/tcp_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7298121

Please sign in to comment.