nat: refactor and split fo EI/ED features
[vpp.git] / src / plugins / nat / nat44 / inlines.h
index 97dfb6c..fde228e 100644 (file)
 #include <vnet/fib/ip4_fib.h>
 #include <nat/nat.h>
 
-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_per_thread)
-    return 1;
-  return 0;
-}
-
 static_always_inline u8
 nat44_ed_maximum_sessions_exceeded (snat_main_t * sm,
                                    u32 fib_index, u32 thread_index)