mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
tcp: Namespace-ify sysctl_tcp_thin_linear_timeouts
Note that sysctl_tcp_thin_dupack was not used, I deleted it. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e20223f196
commit
2c04ac8ae0
4 changed files with 9 additions and 12 deletions
|
@ -22,8 +22,6 @@
|
|||
#include <linux/gfp.h>
|
||||
#include <net/tcp.h>
|
||||
|
||||
int sysctl_tcp_thin_linear_timeouts __read_mostly;
|
||||
|
||||
/**
|
||||
* tcp_write_err() - close socket and save error info
|
||||
* @sk: The socket the error has appeared on.
|
||||
|
@ -522,7 +520,7 @@ out_reset_timer:
|
|||
* linear-timeout retransmissions into a black hole
|
||||
*/
|
||||
if (sk->sk_state == TCP_ESTABLISHED &&
|
||||
(tp->thin_lto || sysctl_tcp_thin_linear_timeouts) &&
|
||||
(tp->thin_lto || net->ipv4.sysctl_tcp_thin_linear_timeouts) &&
|
||||
tcp_stream_is_thin(tp) &&
|
||||
icsk->icsk_retransmits <= TCP_THIN_LINEAR_RETRIES) {
|
||||
icsk->icsk_backoff = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue