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: use correct data types for memory sizes
[vpp.git]
/
src
/
plugins
/
nat
/
nat.c
diff --git
a/src/plugins/nat/nat.c
b/src/plugins/nat/nat.c
index
fdf6334
..
8e20df4
100755
(executable)
--- a/
src/plugins/nat/nat.c
+++ b/
src/plugins/nat/nat.c
@@
-3917,18
+3917,18
@@
snat_config (vlib_main_t * vm, unformat_input_t * input)
snat_main_per_thread_data_t *tsm;
u32 static_mapping_buckets = 1024;
snat_main_per_thread_data_t *tsm;
u32 static_mapping_buckets = 1024;
- u
32
static_mapping_memory_size = 64 << 20;
+ u
word
static_mapping_memory_size = 64 << 20;
u32 nat64_bib_buckets = 1024;
u32 nat64_bib_memory_size = 128 << 20;
u32 nat64_st_buckets = 2048;
u32 nat64_bib_buckets = 1024;
u32 nat64_bib_memory_size = 128 << 20;
u32 nat64_st_buckets = 2048;
- u
32
nat64_st_memory_size = 256 << 20;
+ u
word
nat64_st_memory_size = 256 << 20;
u32 user_buckets = 128;
u32 user_buckets = 128;
- u
32
user_memory_size = 64 << 20;
+ u
word
user_memory_size = 64 << 20;
u32 translation_buckets = 1024;
u32 translation_buckets = 1024;
- u
32
translation_memory_size = 128 << 20;
+ u
word
translation_memory_size = 128 << 20;
u32 max_translations_per_user = ~0;
u32 max_translations_per_user = ~0;