tcp: add helper for AI algorithm
It seems that implementation in yeah was inconsistent to what other did as it would increase cwnd one ack earlier than the others do. Size benefits: bictcp_cong_avoid | -36 tcp_cong_avoid_ai | +52 bictcp_cong_avoid | -34 tcp_scalable_cong_avoid | -36 tcp_veno_cong_avoid | -12 tcp_yeah_cong_avoid | -38 = -104 bytes total Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
571a5dd8d0
commit
758ce5c8d1
7 changed files with 21 additions and 49 deletions
|
@ -685,6 +685,7 @@ extern void tcp_get_allowed_congestion_control(char *buf, size_t len);
|
|||
extern int tcp_set_allowed_congestion_control(char *allowed);
|
||||
extern int tcp_set_congestion_control(struct sock *sk, const char *name);
|
||||
extern void tcp_slow_start(struct tcp_sock *tp);
|
||||
extern void tcp_cong_avoid_ai(struct tcp_sock *tp, u32 w);
|
||||
|
||||
extern struct tcp_congestion_ops tcp_init_congestion_ops;
|
||||
extern u32 tcp_reno_ssthresh(struct sock *sk);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue