Re: [PATCH] net-tcp: extend tcp_tw_reuse sysctl to enable loopback only optimization

2018-06-04 Thread David Miller
From: "Maciej Żenczykowski" Date: Sun, 3 Jun 2018 10:41:17 -0700 > From: Maciej Żenczykowski > > This changes the /proc/sys/net/ipv4/tcp_tw_reuse from a boolean > to an integer. > > It now takes the values 0, 1 and 2, where 0 and 1 behave as before, > while 2 enables timewait socket reuse onl

Re: [PATCH] net-tcp: extend tcp_tw_reuse sysctl to enable loopback only optimization

2018-06-04 Thread Eric Dumazet
On 06/03/2018 10:41 AM, Maciej Żenczykowski wrote: > From: Maciej Żenczykowski > > This changes the /proc/sys/net/ipv4/tcp_tw_reuse from a boolean > to an integer. > > It now takes the values 0, 1 and 2, where 0 and 1 behave as before, > while 2 enables timewait socket reuse only for sockets

[PATCH] net-tcp: extend tcp_tw_reuse sysctl to enable loopback only optimization

2018-06-03 Thread Maciej Żenczykowski
From: Maciej Żenczykowski This changes the /proc/sys/net/ipv4/tcp_tw_reuse from a boolean to an integer. It now takes the values 0, 1 and 2, where 0 and 1 behave as before, while 2 enables timewait socket reuse only for sockets that we can prove are loopback connections: ie. bound to 'lo' inte