diff options
author | Florin Coras <fcoras@cisco.com> | 2019-07-03 17:47:22 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-07-05 11:58:34 +0000 |
commit | a3c3265b20c2a382656957b4afd2003bddccd9bb (patch) | |
tree | 3b45bd4faca1ab99ecf9d45573359d3fbc6d266a /src/vnet/tcp/tcp_input.c | |
parent | ba6abfa0629f04830cc4908a93101ac4ce3bd474 (diff) |
tcp: add loss signal to cc algo
Type:feature
Change-Id: Ibe1a4c555b55fb929d55b02599aaf099ed522cdf
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/tcp/tcp_input.c')
-rw-r--r-- | src/vnet/tcp/tcp_input.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/src/vnet/tcp/tcp_input.c b/src/vnet/tcp/tcp_input.c index 848028f6940..5a7ae5eb2ab 100644 --- a/src/vnet/tcp/tcp_input.c +++ b/src/vnet/tcp/tcp_input.c @@ -1183,14 +1183,11 @@ tcp_cc_recovery_exit (tcp_connection_t * tc) TCP_EVT_DBG (TCP_EVT_CC_EVT, tc, 3); } -#ifndef CLIB_MARCH_VARIANT -void -tcp_cc_fastrecovery_exit (tcp_connection_t * tc) +static inline void +tcp_cc_fastrecovery_clear_inline (tcp_connection_t * tc) { - tc->cc_algo->recovered (tc); tc->snd_rxt_bytes = 0; tc->rcv_dupacks = 0; - tc->snd_rxt_bytes = 0; tc->rtt_ts = 0; tcp_fastrecovery_off (tc); @@ -1198,6 +1195,20 @@ tcp_cc_fastrecovery_exit (tcp_connection_t * tc) TCP_EVT_DBG (TCP_EVT_CC_EVT, tc, 3); } + +static void +tcp_cc_fastrecovery_exit (tcp_connection_t * tc) +{ + tc->cc_algo->recovered (tc); + tcp_cc_fastrecovery_clear_inline (tc); +} + +#ifndef CLIB_MARCH_VARIANT +void +tcp_cc_fastrecovery_clear (tcp_connection_t * tc) +{ + tcp_cc_fastrecovery_clear_inline (tc); +} #endif /* CLIB_MARCH_VARIANT */ static void |