diff options
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index a9d917e4dad5..9b98d35aa0d8 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -220,7 +220,7 @@ void tcp_select_initial_window(const struct sock *sk, int __space, __u32 mss, | |||
220 | (*rcv_wscale) = 0; | 220 | (*rcv_wscale) = 0; |
221 | if (wscale_ok) { | 221 | if (wscale_ok) { |
222 | /* Set window scaling on max possible window */ | 222 | /* Set window scaling on max possible window */ |
223 | space = max_t(u32, space, sysctl_tcp_rmem[2]); | 223 | space = max_t(u32, space, sock_net(sk)->ipv4.sysctl_tcp_rmem[2]); |
224 | space = max_t(u32, space, sysctl_rmem_max); | 224 | space = max_t(u32, space, sysctl_rmem_max); |
225 | space = min_t(u32, space, *window_clamp); | 225 | space = min_t(u32, space, *window_clamp); |
226 | while (space > U16_MAX && (*rcv_wscale) < TCP_MAX_WSCALE) { | 226 | while (space > U16_MAX && (*rcv_wscale) < TCP_MAX_WSCALE) { |