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:

committed by
David S. Miller

parent
ae5c3f406c
commit
c6214a97c8
@@ -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;
|
||||
|
Reference in New Issue
Block a user