diff options
author | Eric Dumazet <edumazet@google.com> | 2017-10-27 10:47:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-28 06:24:38 -0400 |
commit | 26e9596e5b8f11025b57b12e7265df649129ab00 (patch) | |
tree | 393608af5ca629f8d68ed994faf4dc52599e1a29 /net/ipv4/tcp_output.c | |
parent | b530b68148301d73775cd27cc136ce4dd5738ae8 (diff) |
tcp: Namespace-ify sysctl_tcp_min_tso_segs
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index f018892c6a98..aab6e7145013 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -1758,7 +1758,8 @@ static u32 tcp_tso_segs(struct sock *sk, unsigned int mss_now) | |||
1758 | u32 tso_segs = ca_ops->tso_segs_goal ? ca_ops->tso_segs_goal(sk) : 0; | 1758 | u32 tso_segs = ca_ops->tso_segs_goal ? ca_ops->tso_segs_goal(sk) : 0; |
1759 | 1759 | ||
1760 | return tso_segs ? : | 1760 | return tso_segs ? : |
1761 | tcp_tso_autosize(sk, mss_now, sysctl_tcp_min_tso_segs); | 1761 | tcp_tso_autosize(sk, mss_now, |
1762 | sock_net(sk)->ipv4.sysctl_tcp_min_tso_segs); | ||
1762 | } | 1763 | } |
1763 | 1764 | ||
1764 | /* Returns the portion of skb which can be sent right away */ | 1765 | /* Returns the portion of skb which can be sent right away */ |