From 599db9e9d0c61ac39b16cc572f975cdc70c07783 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Mon, 25 Nov 2019 09:41:37 -0800 Subject: tcp: honor cc pacing rate when resetting pacer Type: fix Change-Id: I36558b67d38266def9dfe45777d9757a33ce2569 Signed-off-by: Florin Coras --- src/vnet/tcp/tcp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/vnet/tcp') 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); } -- cgit 1.2.3-korg