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/session/transport.h | |
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/session/transport.h')
-rw-r--r-- | src/vnet/session/transport.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/session/transport.h b/src/vnet/session/transport.h index 633bb1ecfd0..6e8b22a8cac 100644 --- a/src/vnet/session/transport.h +++ b/src/vnet/session/transport.h @@ -252,7 +252,8 @@ int transport_alloc_local_endpoint (u8 proto, transport_endpoint_cfg_t * rmt, u16 * lcl_port); void transport_share_local_endpoint (u8 proto, ip46_address_t * lcl_ip, u16 port); -void transport_endpoint_cleanup (u8 proto, ip46_address_t * lcl_ip, u16 port); +int transport_release_local_endpoint (u8 proto, ip46_address_t *lcl_ip, + u16 port); void transport_enable_disable (vlib_main_t * vm, u8 is_en); void transport_init (void); |