diff options
author | Florin Coras <fcoras@cisco.com> | 2022-11-09 15:54:39 -0800 |
---|---|---|
committer | Dave Barach <vpp@barachs.net> | 2022-11-29 23:51:59 +0000 |
commit | bf27ca8021f37a99c0d1a28e85013f3c37979ba0 (patch) | |
tree | c20f266d587f7a17e906c5ec1f104144b3083bfc /src/vnet/tcp | |
parent | b9e391e7b08ed8f6f32401eae5d6525aab904737 (diff) |
session: transport endpt cleanup on owner thread
Maintain a single writer multiple readers usage model for transport
endpoints pool.
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I8555700ed725971341f145ea97f031042a298e83
Diffstat (limited to 'src/vnet/tcp')
-rw-r--r-- | src/vnet/tcp/tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/tcp/tcp.c b/src/vnet/tcp/tcp.c index 09913fa1242..bdf1751ff14 100644 --- a/src/vnet/tcp/tcp.c +++ b/src/vnet/tcp/tcp.c @@ -240,8 +240,8 @@ tcp_connection_cleanup (tcp_connection_t * tc) /* Cleanup local endpoint if this was an active connect */ if (!(tc->cfg_flags & TCP_CFG_F_NO_ENDPOINT)) - transport_endpoint_cleanup (TRANSPORT_PROTO_TCP, &tc->c_lcl_ip, - tc->c_lcl_port); + transport_release_local_endpoint (TRANSPORT_PROTO_TCP, &tc->c_lcl_ip, + tc->c_lcl_port); /* Check if connection is not yet fully established */ if (tc->state == TCP_STATE_SYN_SENT) |