aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_timer.c')
-rw-r--r--net/ipv4/tcp_timer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c
index 09f4e0297e56..49bc474f8e35 100644
--- a/net/ipv4/tcp_timer.c
+++ b/net/ipv4/tcp_timer.c
@@ -22,7 +22,6 @@
22#include <linux/gfp.h> 22#include <linux/gfp.h>
23#include <net/tcp.h> 23#include <net/tcp.h>
24 24
25int sysctl_tcp_orphan_retries __read_mostly;
26int sysctl_tcp_thin_linear_timeouts __read_mostly; 25int sysctl_tcp_thin_linear_timeouts __read_mostly;
27 26
28static void tcp_write_err(struct sock *sk) 27static void tcp_write_err(struct sock *sk)
@@ -78,7 +77,7 @@ static int tcp_out_of_resources(struct sock *sk, bool do_reset)
78/* Calculate maximal number or retries on an orphaned socket. */ 77/* Calculate maximal number or retries on an orphaned socket. */
79static int tcp_orphan_retries(struct sock *sk, bool alive) 78static int tcp_orphan_retries(struct sock *sk, bool alive)
80{ 79{
81 int retries = sysctl_tcp_orphan_retries; /* May be zero. */ 80 int retries = sock_net(sk)->ipv4.sysctl_tcp_orphan_retries; /* May be zero. */
82 81
83 /* We know from an ICMP that something is wrong. */ 82 /* We know from an ICMP that something is wrong. */
84 if (sk->sk_err_soft && !alive) 83 if (sk->sk_err_soft && !alive)