aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session/transport.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-03-31 15:42:17 -0700
committerDamjan Marion <dmarion@me.com>2022-04-01 15:40:34 +0000
commitd3915dc1b5201956578eb900a2d936d94fc09b90 (patch)
tree85f1a2e31158c1825946f0b238ad546a26033784 /src/vnet/session/transport.c
parent691c630b79ec2230b67944c8a9f77f95b49d95ad (diff)
session: leverage new pool functions in safe realloc
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I2c264c31d2470b11b94d68411fa8266387319146
Diffstat (limited to 'src/vnet/session/transport.c')
-rw-r--r--src/vnet/session/transport.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/vnet/session/transport.c b/src/vnet/session/transport.c
index 0473f198e15..54ce9176666 100644
--- a/src/vnet/session/transport.c
+++ b/src/vnet/session/transport.c
@@ -425,20 +425,13 @@ transport_endpoint_free (u32 tepi)
pool_put_index (local_endpoints, tepi);
}
-static void
-transport_endpoint_pool_realloc_rpc (void *rpc_args)
-{
- pool_realloc_safe_aligned (local_endpoints, 0);
-}
-
always_inline local_endpoint_t *
transport_endpoint_alloc (void)
{
local_endpoint_t *lep;
ASSERT (vlib_get_thread_index () <= transport_cl_thread ());
- pool_get_aligned_safe (local_endpoints, lep, transport_cl_thread (),
- transport_endpoint_pool_realloc_rpc, 0);
+ pool_get_aligned_safe (local_endpoints, lep, 0);
return lep;
}