diff options
author | Nathan Skrzypczak <nathan.skrzypczak@gmail.com> | 2020-11-04 11:41:05 +0100 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2023-08-09 08:23:45 +0000 |
commit | 6d733a93b2eb9c16196ee17d5cdc77db21589571 (patch) | |
tree | 7e23016a4ceafedfe85974b58d56a4007780c52b /src/plugins/cnat/cnat_client.h | |
parent | 897844d1e96797f69e3e7e11d237d847fe4e46bf (diff) |
cnat: remove rwlock on ts
Type: improvement
Remove rwlock contention on timestamps. ~10% pps with
10k sessions. Use fixed-size-pools of increasing sizes
starting with 4K, and with a x2 step each time.
We don't free/shrink allocated pools.
Change-Id: I5fea51faba40430106c823275a6356e81709d118
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/plugins/cnat/cnat_client.h')
-rw-r--r-- | src/plugins/cnat/cnat_client.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/cnat/cnat_client.h b/src/plugins/cnat/cnat_client.h index db6933c3b95..4dc6b754b2f 100644 --- a/src/plugins/cnat/cnat_client.h +++ b/src/plugins/cnat/cnat_client.h @@ -86,8 +86,6 @@ extern void cnat_client_free_by_ip (ip46_address_t * addr, u8 af); extern cnat_client_t *cnat_client_pool; extern dpo_type_t cnat_client_dpo; -#define CC_INDEX_INVALID ((u32)(~0)) - static_always_inline cnat_client_t * cnat_client_get (index_t i) { |