Re: [PATCH net 1/1] net: sock: Use double send/recv buff value to compare with max value

2017-02-09 Thread Eric Dumazet
On Thu, 2017-02-09 at 17:08 +0800, Gao Feng wrote: > On Thu, Feb 9, 2017 at 12:00 AM, Eric Dumazet wrote: > > On Wed, 2017-02-08 at 21:07 +0800, f...@ikuai8.com wrote: > >> From: Gao Feng > >> > >> Because the value of SO_SNDBUF and SO_RCVBUF is doubled

Re: [PATCH net 1/1] net: sock: Use double send/recv buff value to compare with max value

2017-02-09 Thread Gao Feng
On Thu, Feb 9, 2017 at 12:00 AM, Eric Dumazet wrote: > On Wed, 2017-02-08 at 21:07 +0800, f...@ikuai8.com wrote: >> From: Gao Feng >> >> Because the value of SO_SNDBUF and SO_RCVBUF is doubled before >> assignment, so the real value of send and recv

Re: [PATCH net 1/1] net: sock: Use double send/recv buff value to compare with max value

2017-02-08 Thread Eric Dumazet
On Wed, 2017-02-08 at 21:07 +0800, f...@ikuai8.com wrote: > From: Gao Feng > > Because the value of SO_SNDBUF and SO_RCVBUF is doubled before > assignment, so the real value of send and recv buffer could be more > than the max sysctl config sysctl_wmem_max and sysctl_rmem_max. >

[PATCH net 1/1] net: sock: Use double send/recv buff value to compare with max value

2017-02-08 Thread fgao
From: Gao Feng Because the value of SO_SNDBUF and SO_RCVBUF is doubled before assignment, so the real value of send and recv buffer could be more than the max sysctl config sysctl_wmem_max and sysctl_rmem_max. Now use doulbe send/recv buffer value to compare with