diff options
| author | Christoph Paasch <[email protected]> | 2014-07-14 14:58:32 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2014-07-15 23:19:36 +0000 |
| commit | 5ee2c941b5969eb1b5592f9731b3ee76a784641f (patch) | |
| tree | c2d5a3df3af7a9043f368cb2549f1dede4da7af4 /net/ipv4/tcp_output.c | |
| parent | net: rtnetlink - make create_link take name_assign_type (diff) | |
| download | kernel-5ee2c941b5969eb1b5592f9731b3ee76a784641f.tar.gz kernel-5ee2c941b5969eb1b5592f9731b3ee76a784641f.zip | |
tcp: Remove unnecessary arg from tcp_enter_cwr and tcp_init_cwnd_reduction
Since Yuchung's 9b44190dc11 (tcp: refactor F-RTO), tcp_enter_cwr is always
called with set_ssthresh = 1. Thus, we can remove this argument from
tcp_enter_cwr. Further, as we remove this one, tcp_init_cwnd_reduction
is then always called with set_ssthresh = true, and so we can get rid of
this argument as well.
Cc: Yuchung Cheng <[email protected]>
Signed-off-by: Christoph Paasch <[email protected]>
Acked-by: Yuchung Cheng <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
| -rw-r--r-- | net/ipv4/tcp_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index bcee13c4627c..306dd5dead7d 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -979,7 +979,7 @@ static int tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it, if (likely(err <= 0)) return err; - tcp_enter_cwr(sk, 1); + tcp_enter_cwr(sk); return net_xmit_eval(err); } |
