aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-12-06 17:41:10 -0800
committerDamjan Marion <dmarion@me.com>2018-12-07 15:08:58 +0000
commitdf0847831715ef0f639a6d8e79468cd1e2341cd6 (patch)
treed00cf6300f00e2e95679ea2462600434ef0313a7
parentea41aac320cc47ae00e7dd6e870e6ca32dcdc0b5 (diff)
tcp: measure us rtt with syn-ack
Change-Id: I20820145377060e12aeeb23b433206c79fd88332 Signed-off-by: Florin Coras <fcoras@cisco.com>
-rw-r--r--src/vnet/tcp/tcp_output.c1
1 files changed, 1 insertions, 0 deletions
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);