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: basic cubic implementation
[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
103fea4
..
420e47a
100644
(file)
--- a/
src/vnet/tcp/tcp_newreno.c
+++ b/
src/vnet/tcp/tcp_newreno.c
@@
-36,8
+36,8
@@
newreno_rcv_ack (tcp_connection_t * tc)
}
else
{
- /*
Round up to 1 if needed
*/
- tc
->cwnd += clib_max ((tc->snd_mss * tc->snd_mss) / tc->cwnd, 1
);
+ /*
tc->cwnd += clib_max ((tc->snd_mss * tc->snd_mss) / tc->cwnd, 1);
*/
+ tc
p_cwnd_accumulate (tc, tc->cwnd, tc->bytes_acked
);
}
}