From df0847831715ef0f639a6d8e79468cd1e2341cd6 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 6 Dec 2018 17:41:10 -0800 Subject: tcp: measure us rtt with syn-ack Change-Id: I20820145377060e12aeeb23b433206c79fd88332 Signed-off-by: Florin Coras --- src/vnet/tcp/tcp_output.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vnet/tcp/tcp_output.c b/src/vnet/tcp/tcp_output.c index 0cf7fa95f8f..74fc15fe6cc 100644 --- a/src/vnet/tcp/tcp_output.c +++ b/src/vnet/tcp/tcp_output.c @@ -1021,6 +1021,7 @@ tcp_send_synack (tcp_connection_t * tc) if (PREDICT_FALSE (tcp_get_free_buffer_index (wrk, &bi))) return; + tc->rtt_ts = tcp_time_now_us (tc->c_thread_index); b = vlib_get_buffer (vm, bi); tcp_make_synack (tc, b); tcp_enqueue_to_output (wrk, b, bi, tc->c_is_ip4); -- cgit 1.2.3-korg