diff options
author | Christoph Paasch <christoph.paasch@uclouvain.be> | 2014-07-14 16:58:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-16 01:19:36 +0200 |
commit | 5ee2c941b5969eb1b5592f9731b3ee76a784641f (patch) | |
tree | c2d5a3df3af7a9043f368cb2549f1dede4da7af4 /include/net/tcp.h | |
parent | net: rtnetlink - make create_link take name_assign_type (diff) | |
download | linux-5ee2c941b5969eb1b5592f9731b3ee76a784641f.tar.xz linux-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 <ycheng@google.com>
Signed-off-by: Christoph Paasch <christoph.paasch@uclouvain.be>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index c9a75dbba0c7..0aeb2eb749dc 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -928,7 +928,7 @@ static inline __u32 tcp_current_ssthresh(const struct sock *sk) /* Use define here intentionally to get WARN_ON location shown at the caller */ #define tcp_verify_left_out(tp) WARN_ON(tcp_left_out(tp) > tp->packets_out) -void tcp_enter_cwr(struct sock *sk, const int set_ssthresh); +void tcp_enter_cwr(struct sock *sk); __u32 tcp_init_cwnd(const struct tcp_sock *tp, const struct dst_entry *dst); /* The maximum number of MSS of available cwnd for which TSO defers |