diff options
author | Klement Sekera <ksekera@cisco.com> | 2020-03-27 11:54:53 +0100 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2020-06-11 08:02:16 +0000 |
commit | a1018c166a468f7692ab621c743503914266f508 (patch) | |
tree | 5bf1545971dcbad0ffa3f47bad160baf63b2e0d3 /src/plugins/nat/nat_inlines.h | |
parent | 35418ba491505318e0b08b372fcf1e9f0d45d80f (diff) |
nat: simplify bihash buckets/mem config
Derive reasonable values from max translations/max users.
Type: improvement
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Change-Id: I41a96ab63ab138b4160cd60bd6df24fc73791c86
Diffstat (limited to 'src/plugins/nat/nat_inlines.h')
-rw-r--r-- | src/plugins/nat/nat_inlines.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/nat/nat_inlines.h b/src/plugins/nat/nat_inlines.h index 240ff0e7da9..40ac3d307a8 100644 --- a/src/plugins/nat/nat_inlines.h +++ b/src/plugins/nat/nat_inlines.h @@ -252,7 +252,7 @@ always_inline u8 maximum_sessions_exceeded (snat_main_t * sm, u32 thread_index) { if (pool_elts (sm->per_thread_data[thread_index].sessions) >= - sm->max_translations) + sm->max_translations_per_thread) return 1; return 0; |