diff options
author | Florin Coras <fcoras@cisco.com> | 2018-12-21 13:54:09 -0800 |
---|---|---|
committer | Florin Coras <fcoras@cisco.com> | 2018-12-22 10:34:45 -0800 |
commit | 54ddf435338ce035c1a92199acd5a3b217db177b (patch) | |
tree | c7b54567d3c86e906e24b80c1c1b634c17e9140e /src/vnet/tcp/tcp.h | |
parent | 8d6f34e2b1cbfde5702e88686631527d5e1e10a0 (diff) |
tcp: improve waitclose in closing states
Change-Id: I90056176194cb2a144d49a3cb283653d8d30f051
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/tcp/tcp.h')
-rw-r--r-- | src/vnet/tcp/tcp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vnet/tcp/tcp.h b/src/vnet/tcp/tcp.h index 2327b9a6ad5..bd0fa9a7204 100644 --- a/src/vnet/tcp/tcp.h +++ b/src/vnet/tcp/tcp.h @@ -562,6 +562,13 @@ tcp_get_connection_from_transport (transport_connection_t * tconn) return (tcp_connection_t *) tconn; } +always_inline void +tcp_connection_set_state (tcp_connection_t * tc, tcp_state_t state) +{ + tc->state = state; + TCP_EVT_DBG (TCP_EVT_STATE_CHANGE, tc); +} + void tcp_connection_close (tcp_connection_t * tc); void tcp_connection_cleanup (tcp_connection_t * tc); void tcp_connection_del (tcp_connection_t * tc); |