summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-11-25 09:41:37 -0800
committerDave Barach <openvpp@barachs.net>2019-11-25 20:01:25 +0000
commit599db9e9d0c61ac39b16cc572f975cdc70c07783 (patch)
tree9039bafa798565d2e9ea675816abc3373ed23385 /src/vnet
parentb72a0ff73514ec7ea79ed3fad49b77d56b248642 (diff)
tcp: honor cc pacing rate when resetting pacer
Type: fix Change-Id: I36558b67d38266def9dfe45777d9757a33ce2569 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/tcp/tcp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vnet/tcp/tcp.c b/src/vnet/tcp/tcp.c
index 3b1cfe112ed..7dce97ea0c2 100644
--- a/src/vnet/tcp/tcp.c
+++ b/src/vnet/tcp/tcp.c
@@ -1411,8 +1411,9 @@ tcp_connection_tx_pacer_reset (tcp_connection_t * tc, u32 window,
u32 start_bucket)
{
f64 srtt = clib_min ((f64) tc->srtt * TCP_TICK, tc->mrtt_us);
- u64 rate = (u64) window / srtt;
- transport_connection_tx_pacer_reset (&tc->connection, rate, start_bucket,
+ transport_connection_tx_pacer_reset (&tc->connection,
+ tcp_cc_get_pacing_rate (tc),
+ start_bucket,
srtt * CLIB_US_TIME_FREQ);
}