diff options
author | Eric Dumazet <edumazet@google.com> | 2017-10-27 10:47:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-28 06:24:39 -0400 |
commit | c26e91f8b9b8e1fd252e07c1f60e50220cd7ebab (patch) | |
tree | 5f0d0b02bde533de08ef07d5e670f0815be84d3e /net/ipv4/tcp_input.c | |
parent | 23a7102a2d1068508fa2a0ce593a0df7f8fdc0ac (diff) |
tcp: Namespace-ify sysctl_tcp_pacing_ca_ratio
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 29539d39e61a..21c358c0cf2e 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -767,8 +767,6 @@ static void tcp_rtt_estimator(struct sock *sk, long mrtt_us) | |||
767 | tp->srtt_us = max(1U, srtt); | 767 | tp->srtt_us = max(1U, srtt); |
768 | } | 768 | } |
769 | 769 | ||
770 | int sysctl_tcp_pacing_ca_ratio __read_mostly = 120; | ||
771 | |||
772 | static void tcp_update_pacing_rate(struct sock *sk) | 770 | static void tcp_update_pacing_rate(struct sock *sk) |
773 | { | 771 | { |
774 | const struct tcp_sock *tp = tcp_sk(sk); | 772 | const struct tcp_sock *tp = tcp_sk(sk); |
@@ -788,7 +786,7 @@ static void tcp_update_pacing_rate(struct sock *sk) | |||
788 | if (tp->snd_cwnd < tp->snd_ssthresh / 2) | 786 | if (tp->snd_cwnd < tp->snd_ssthresh / 2) |
789 | rate *= sock_net(sk)->ipv4.sysctl_tcp_pacing_ss_ratio; | 787 | rate *= sock_net(sk)->ipv4.sysctl_tcp_pacing_ss_ratio; |
790 | else | 788 | else |
791 | rate *= sysctl_tcp_pacing_ca_ratio; | 789 | rate *= sock_net(sk)->ipv4.sysctl_tcp_pacing_ca_ratio; |
792 | 790 | ||
793 | rate *= max(tp->snd_cwnd, tp->packets_out); | 791 | rate *= max(tp->snd_cwnd, tp->packets_out); |
794 | 792 | ||