[TCP]: Add pluggable congestion control algorithm infrastructure.
Allow TCP to have multiple pluggable congestion control algorithms. Algorithms are defined by a set of operations and can be built in or modules. The legacy "new RENO" algorithm is used as a starting point and fallback. Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a8ad86f2dc
commit
317a76f9a4
@@ -2048,6 +2048,7 @@ static int tcp_v4_init_sock(struct sock *sk)
|
||||
tp->mss_cache_std = tp->mss_cache = 536;
|
||||
|
||||
tp->reordering = sysctl_tcp_reordering;
|
||||
tp->ca_ops = &tcp_reno;
|
||||
|
||||
sk->sk_state = TCP_CLOSE;
|
||||
|
||||
@@ -2070,6 +2071,8 @@ int tcp_v4_destroy_sock(struct sock *sk)
|
||||
|
||||
tcp_clear_xmit_timers(sk);
|
||||
|
||||
tcp_cleanup_congestion_control(tp);
|
||||
|
||||
/* Cleanup up the write buffer. */
|
||||
sk_stream_writequeue_purge(sk);
|
||||
|
||||
|
Reference in New Issue
Block a user