From a1018c166a468f7692ab621c743503914266f508 Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Fri, 27 Mar 2020 11:54:53 +0100 Subject: nat: simplify bihash buckets/mem config Derive reasonable values from max translations/max users. Type: improvement Signed-off-by: Klement Sekera Change-Id: I41a96ab63ab138b4160cd60bd6df24fc73791c86 --- src/plugins/nat/nat44/inlines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/nat/nat44') diff --git a/src/plugins/nat/nat44/inlines.h b/src/plugins/nat/nat44/inlines.h index 6e462d7c36f..8bfc74012e8 100644 --- a/src/plugins/nat/nat44/inlines.h +++ b/src/plugins/nat/nat44/inlines.h @@ -26,7 +26,7 @@ static_always_inline u8 nat44_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; } -- cgit 1.2.3-korg