aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/nat.c
diff options
context:
space:
mode:
authorFilip Varga <fivarga@cisco.com>2020-09-14 11:20:16 +0200
committerOle Tr�an <otroan@employees.org>2020-10-07 09:05:50 +0000
commit1f36023d29137825b8a09578d09b955046c2415b (patch)
treec00726718d9d8b4f5ecc74c45d9a2d790deb0250 /src/plugins/nat/nat.c
parentd1762e614d1e05cbeda4d91e921fa663b2b46c03 (diff)
nat: move nat64 to a subfeature
Type: refactor Change-Id: I3b9e17164647d2019b1f40cffeed63393345219e Signed-off-by: Filip Varga <fivarga@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat.c')
-rw-r--r--src/plugins/nat/nat.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/plugins/nat/nat.c b/src/plugins/nat/nat.c
index 15c767c82c3..ad7fab9032b 100644
--- a/src/plugins/nat/nat.c
+++ b/src/plugins/nat/nat.c
@@ -22,7 +22,6 @@
#include <nat/nat.h>
#include <nat/nat_dpo.h>
#include <nat/nat_ipfix_logging.h>
-#include <nat/nat64.h>
#include <nat/nat_inlines.h>
#include <nat/nat44/inlines.h>
#include <nat/nat_affinity.h>
@@ -2713,11 +2712,6 @@ snat_init (vlib_main_t * vm)
/* Init IPFIX logging */
snat_ipfix_logging_init (vm);
- /* Init NAT64 */
- error = nat64_init (vm);
- if (error)
- return error;
-
ip4_table_bind_callback_t cbt4 = {
.function = snat_ip4_table_bind,
};
@@ -4096,12 +4090,6 @@ snat_config (vlib_main_t * vm, unformat_input_t * input)
u32 static_mapping_buckets = 1024;
uword static_mapping_memory_size = 64 << 20;
- u32 nat64_bib_buckets = 1024;
- u32 nat64_bib_memory_size = 128 << 20;
-
- u32 nat64_st_buckets = 2048;
- uword nat64_st_memory_size = 256 << 20;
-
u32 max_users_per_thread = 0;
u32 user_memory_size = 0;
u32 max_translations_per_thread = 0;
@@ -4160,18 +4148,6 @@ snat_config (vlib_main_t * vm, unformat_input_t * input)
if (unformat (input, "connection tracking"))
static_mapping_connection_tracking = 1;
}
- else if (unformat (input, "nat64 bib hash buckets %d",
- &nat64_bib_buckets))
- ;
- else if (unformat (input, "nat64 bib hash memory %d",
- &nat64_bib_memory_size))
- ;
- else
- if (unformat (input, "nat64 st hash buckets %d", &nat64_st_buckets))
- ;
- else if (unformat (input, "nat64 st hash memory %d",
- &nat64_st_memory_size))
- ;
else if (unformat (input, "out2in dpo"))
sm->out2in_dpo = 1;
else if (unformat (input, "endpoint-dependent"))
@@ -4254,9 +4230,6 @@ snat_config (vlib_main_t * vm, unformat_input_t * input)
sm->static_mapping_only = static_mapping_only;
sm->static_mapping_connection_tracking = static_mapping_connection_tracking;
- nat64_set_hash (nat64_bib_buckets, nat64_bib_memory_size, nat64_st_buckets,
- nat64_st_memory_size);
-
if (sm->endpoint_dependent)
{
sm->worker_in2out_cb = nat44_ed_get_worker_in2out_cb;