From ca2831a80c891ee941faf79cbd80805a2c343eaf Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 4 Jul 2019 17:05:59 -0700 Subject: tcp: add cc algo start tx event Type: feature Notify cc algos that new data is sent on a connection that was apparently idle. Change-Id: I892e5e9bb5b88d791265ffbbefce6f9694d01970 Signed-off-by: Florin Coras --- src/vnet/tcp/tcp_output.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/vnet/tcp/tcp_output.c') diff --git a/src/vnet/tcp/tcp_output.c b/src/vnet/tcp/tcp_output.c index 8537b1fb772..17873ac4dab 100644 --- a/src/vnet/tcp/tcp_output.c +++ b/src/vnet/tcp/tcp_output.c @@ -425,6 +425,9 @@ tcp_update_burst_snd_vars (tcp_connection_t * tc) if (tc->flags & TCP_CONN_RATE_SAMPLE) tc->flags |= TCP_CONN_TRACK_BURST; + + if (tc->snd_una == tc->snd_nxt) + tcp_cc_event (tc, TCP_CC_EVT_START_TX); } void -- cgit 1.2.3-korg