Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
nat: simplify bihash buckets/mem config
[vpp.git]
/
src
/
plugins
/
nat
/
nat.h
diff --git
a/src/plugins/nat/nat.h
b/src/plugins/nat/nat.h
index
8b04e18
..
d5b236d
100644
(file)
--- a/
src/plugins/nat/nat.h
+++ b/
src/plugins/nat/nat.h
@@
-635,9
+635,9
@@
typedef struct snat_main_s
u32 translation_buckets;
uword translation_memory_size;
u32 translation_buckets;
uword translation_memory_size;
- u32 max_translations;
+ u32 max_translations
_per_thread
;
u32 *max_translations_per_fib;
u32 *max_translations_per_fib;
-
+ u32 max_users_per_thread;
u32 user_buckets;
uword user_memory_size;
u32 max_translations_per_user;
u32 user_buckets;
uword user_memory_size;
u32 max_translations_per_user;
@@
-660,6
+660,7
@@
typedef struct snat_main_s
/* counters/gauges */
vlib_simple_counter_main_t total_users;
vlib_simple_counter_main_t total_sessions;
/* counters/gauges */
vlib_simple_counter_main_t total_users;
vlib_simple_counter_main_t total_sessions;
+ vlib_simple_counter_main_t user_limit_reached;;
/* API message ID base */
u16 msg_id_base;
/* API message ID base */
u16 msg_id_base;