diff options
author | Florin Coras <fcoras@cisco.com> | 2024-11-13 22:54:14 -0800 |
---|---|---|
committer | Dave Barach <vpp@barachs.net> | 2024-11-18 17:13:30 +0000 |
commit | da237e8b983dbde5cf7c1a27d82030313b4db3ee (patch) | |
tree | edcbcf73830377f34a5e0a587d3a99af64a5f8db /src/vnet/session/transport.h | |
parent | 80ae7e5307fc73077c6291ccfd2f5bf4888ca5e1 (diff) |
session: track number of tries to alloc lcl port
Track number of tries to alloc local port and report it in stats
segment. Could be used to gauge how busy the port allocator is.
Also add cli to dump trasport sub-layer state.
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I3736a48488c491dee85aa2b074b87519a3857057
Diffstat (limited to 'src/vnet/session/transport.h')
-rw-r--r-- | src/vnet/session/transport.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/session/transport.h b/src/vnet/session/transport.h index e6ba1ecbc5f..289bf471af0 100644 --- a/src/vnet/session/transport.h +++ b/src/vnet/session/transport.h @@ -252,6 +252,8 @@ void transport_share_local_endpoint (u8 proto, ip46_address_t * lcl_ip, u16 port); int transport_release_local_endpoint (u8 proto, ip46_address_t *lcl_ip, u16 port); +u16 transport_port_alloc_max_tries (); +void transport_clear_stats (); void transport_enable_disable (vlib_main_t * vm, u8 is_en); void transport_init (void); |