Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
tcp: cc improvements and fixes
[vpp.git]
/
src
/
vnet
/
tcp
/
tcp_newreno.c
diff --git
a/src/vnet/tcp/tcp_newreno.c
b/src/vnet/tcp/tcp_newreno.c
index
7ae7f48
..
0f43d21
100644
(file)
--- a/
src/vnet/tcp/tcp_newreno.c
+++ b/
src/vnet/tcp/tcp_newreno.c
@@
-44,6
+44,8
@@
newreno_rcv_ack (tcp_connection_t * tc)
tc->cwnd += inc * tc->snd_mss;
tc->cwnd_acc_bytes -= inc * tc->cwnd;
}
+ tc->cwnd = clib_min (tc->cwnd,
+ transport_tx_fifo_size (&tc->connection));
}
}