ipv4: Namespaceify tcp_retries2 sysctl knob

Signed-off-by: Nikolay Borisov <kernel@kyup.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Nikolay Borisov
2016-02-03 09:46:54 +02:00
committed by David S. Miller
parent ae5c3f406c
commit c6214a97c8
6 changed files with 13 additions and 12 deletions

View File

@@ -3476,6 +3476,7 @@ void tcp_send_probe0(struct sock *sk)
{
struct inet_connection_sock *icsk = inet_csk(sk);
struct tcp_sock *tp = tcp_sk(sk);
struct net *net = sock_net(sk);
unsigned long probe_max;
int err;
@@ -3489,7 +3490,7 @@ void tcp_send_probe0(struct sock *sk)
}
if (err <= 0) {
if (icsk->icsk_backoff < sysctl_tcp_retries2)
if (icsk->icsk_backoff < net->ipv4.sysctl_tcp_retries2)
icsk->icsk_backoff++;
icsk->icsk_probes_out++;
probe_max = TCP_RTO_MAX;