diff options
author | Stanislav Fomichev <stfomichev@yandex-team.ru> | 2014-02-12 08:35:21 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-13 18:22:34 -0500 |
commit | 45f7435968363816f8fc4c6abef692808534140d (patch) | |
tree | a4fa1938204a2967ceb54141927da8f8c57ff214 /include/net/tcp.h | |
parent | f93f160b5a3546b6d3143894f63a326442071e48 (diff) |
tcp: remove unused min_cwnd member of tcp_congestion_ops
Commit 684bad110757 "tcp: use PRR to reduce cwin in CWR state" removed all
calls to min_cwnd, so we can safely remove it.
Also, remove tcp_reno_min_cwnd because it was only used for min_cwnd.
Signed-off-by: Stanislav Fomichev <stfomichev@yandex-team.ru>
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 | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 56fc366da6d5..1f820537741a 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -791,8 +791,6 @@ struct tcp_congestion_ops { | |||
791 | 791 | ||
792 | /* return slow start threshold (required) */ | 792 | /* return slow start threshold (required) */ |
793 | u32 (*ssthresh)(struct sock *sk); | 793 | u32 (*ssthresh)(struct sock *sk); |
794 | /* lower bound for congestion window (optional) */ | ||
795 | u32 (*min_cwnd)(const struct sock *sk); | ||
796 | /* do new cwnd calculation (required) */ | 794 | /* do new cwnd calculation (required) */ |
797 | void (*cong_avoid)(struct sock *sk, u32 ack, u32 acked, u32 in_flight); | 795 | void (*cong_avoid)(struct sock *sk, u32 ack, u32 acked, u32 in_flight); |
798 | /* call before changing ca_state (optional) */ | 796 | /* call before changing ca_state (optional) */ |
@@ -827,7 +825,6 @@ void tcp_cong_avoid_ai(struct tcp_sock *tp, u32 w); | |||
827 | extern struct tcp_congestion_ops tcp_init_congestion_ops; | 825 | extern struct tcp_congestion_ops tcp_init_congestion_ops; |
828 | u32 tcp_reno_ssthresh(struct sock *sk); | 826 | u32 tcp_reno_ssthresh(struct sock *sk); |
829 | void tcp_reno_cong_avoid(struct sock *sk, u32 ack, u32 acked, u32 in_flight); | 827 | void tcp_reno_cong_avoid(struct sock *sk, u32 ack, u32 acked, u32 in_flight); |
830 | u32 tcp_reno_min_cwnd(const struct sock *sk); | ||
831 | extern struct tcp_congestion_ops tcp_reno; | 828 | extern struct tcp_congestion_ops tcp_reno; |
832 | 829 | ||
833 | static inline void tcp_set_ca_state(struct sock *sk, const u8 ca_state) | 830 | static inline void tcp_set_ca_state(struct sock *sk, const u8 ca_state) |