diff options
author | Florin Coras <fcoras@cisco.com> | 2021-07-06 08:25:36 -0700 |
---|---|---|
committer | Florin Coras <fcoras@cisco.com> | 2021-07-06 14:53:44 -0700 |
commit | 57b2e4acb1104ac34b1c2e29309e0f5f471b42d7 (patch) | |
tree | 19b327e6f24f1930d19f747d3f7535d0852edf91 /src/vnet/tcp/tcp_inlines.h | |
parent | 3169e9ff1ef673402aa05332096fb877ca2f4b25 (diff) |
tcp: use main thread pool for half-opens
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I4b3427b966f9ff1ba8895fed7db662d56650f3f5
Diffstat (limited to 'src/vnet/tcp/tcp_inlines.h')
-rw-r--r-- | src/vnet/tcp/tcp_inlines.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/vnet/tcp/tcp_inlines.h b/src/vnet/tcp/tcp_inlines.h index 68eb4b147fa..dfdf801d0ab 100644 --- a/src/vnet/tcp/tcp_inlines.h +++ b/src/vnet/tcp/tcp_inlines.h @@ -66,10 +66,7 @@ tcp_listener_get (u32 tli) always_inline tcp_connection_t * tcp_half_open_connection_get (u32 conn_index) { - tcp_connection_t *tc = 0; - if (!pool_is_free_index (tcp_main.half_open_connections, conn_index)) - tc = pool_elt_at_index (tcp_main.half_open_connections, conn_index); - return tc; + return tcp_connection_get (conn_index, 0); } /** |