aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp/tcp_cubic.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-01-07 15:06:42 -0800
committerFlorin Coras <fcoras@cisco.com>2022-01-07 15:06:42 -0800
commitded32ed0e89f2a671a7ac14117dd6198881c586e (patch)
tree70f185fd0a7209d9286b8c1a6328bfae80936ab4 /src/vnet/tcp/tcp_cubic.c
parented999e3b8159eb5b584354af95686a84fb012e05 (diff)
tcp: fix cubic cwnd accumulate use of bytes acked
Use what was provided instead of tc->bytes_acked Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I0ed736d2ee247e231fccdf4a969fcf6bc15b7978
Diffstat (limited to 'src/vnet/tcp/tcp_cubic.c')
-rw-r--r--src/vnet/tcp/tcp_cubic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/tcp/tcp_cubic.c b/src/vnet/tcp/tcp_cubic.c
index 85c311bb631..cf2b9a17d18 100644
--- a/src/vnet/tcp/tcp_cubic.c
+++ b/src/vnet/tcp/tcp_cubic.c
@@ -141,7 +141,7 @@ cubic_cwnd_accumulate (tcp_connection_t * tc, u32 thresh, u32 bytes_acked)
tc->cwnd_acc_bytes = 0;
}
- tcp_cwnd_accumulate (tc, thresh, tc->bytes_acked);
+ tcp_cwnd_accumulate (tc, thresh, bytes_acked);
}
static void