Re: [PATCH net] tcp: consider recv buf for the initial window scale

2016-07-29 Thread Soheil Hassas Yeganeh
On Fri, Jul 29, 2016 at 9:21 AM, Neal Cardwell wrote: > > On Thu, Jul 28, 2016 at 11:11 PM, Soheil Hassas Yeganeh > wrote: > > > > From: Soheil Hassas Yeganeh > > > > tcp_select_initial_window() intends to advertise a window > > scaling for the maximum possible window size. To do so, > > it cons

Re: [PATCH net] tcp: consider recv buf for the initial window scale

2016-07-29 Thread Neal Cardwell
On Thu, Jul 28, 2016 at 11:11 PM, Soheil Hassas Yeganeh wrote: > > From: Soheil Hassas Yeganeh > > tcp_select_initial_window() intends to advertise a window > scaling for the maximum possible window size. To do so, > it considers the maximum of net.ipv4.tcp_rmem[2] and > net.core.rmem_max as the

[PATCH net] tcp: consider recv buf for the initial window scale

2016-07-28 Thread Soheil Hassas Yeganeh
From: Soheil Hassas Yeganeh tcp_select_initial_window() intends to advertise a window scaling for the maximum possible window size. To do so, it considers the maximum of net.ipv4.tcp_rmem[2] and net.core.rmem_max as the only possible upper-bounds. However, users with CAP_NET_ADMIN can use SO_RCVB