nat: simplify bihash buckets/mem config
[vpp.git] / src / plugins / nat / nat_inlines.h
index 240ff0e..40ac3d3 100644 (file)
@@ -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;