|
@@ -362,21 +362,12 @@ u32 tcp_reno_ssthresh(struct sock *sk)
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(tcp_reno_ssthresh);
|
|
|
|
|
|
-/* Lower bound on congestion window with halving. */
|
|
|
-u32 tcp_reno_min_cwnd(const struct sock *sk)
|
|
|
-{
|
|
|
- const struct tcp_sock *tp = tcp_sk(sk);
|
|
|
- return tp->snd_ssthresh/2;
|
|
|
-}
|
|
|
-EXPORT_SYMBOL_GPL(tcp_reno_min_cwnd);
|
|
|
-
|
|
|
struct tcp_congestion_ops tcp_reno = {
|
|
|
.flags = TCP_CONG_NON_RESTRICTED,
|
|
|
.name = "reno",
|
|
|
.owner = THIS_MODULE,
|
|
|
.ssthresh = tcp_reno_ssthresh,
|
|
|
.cong_avoid = tcp_reno_cong_avoid,
|
|
|
- .min_cwnd = tcp_reno_min_cwnd,
|
|
|
};
|
|
|
|
|
|
/* Initial congestion control used (until SYN)
|
|
@@ -388,6 +379,5 @@ struct tcp_congestion_ops tcp_init_congestion_ops = {
|
|
|
.owner = THIS_MODULE,
|
|
|
.ssthresh = tcp_reno_ssthresh,
|
|
|
.cong_avoid = tcp_reno_cong_avoid,
|
|
|
- .min_cwnd = tcp_reno_min_cwnd,
|
|
|
};
|
|
|
EXPORT_SYMBOL_GPL(tcp_init_congestion_ops);
|