summaryrefslogtreecommitdiffstats
path: root/src/plugins/nat
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2020-05-12 10:00:34 +0000
committerOle Trøan <otroan@employees.org>2020-05-14 12:13:35 +0000
commit85be5d75daa399832d8df770b1a944dab0011c09 (patch)
treea36421366c05caa6ac8fbfd1a109985b28189519 /src/plugins/nat
parent2a595da121b28784f73e710534522583cac7af40 (diff)
nat: remove unused code
Type: improvement Signed-off-by: Klement Sekera <ksekera@cisco.com> Change-Id: I95286d6723fd1860bf6bb0e81c474d732ab25121
Diffstat (limited to 'src/plugins/nat')
-rwxr-xr-xsrc/plugins/nat/nat.c2
-rw-r--r--src/plugins/nat/nat.h1
2 files changed, 0 insertions, 3 deletions
diff --git a/src/plugins/nat/nat.c b/src/plugins/nat/nat.c
index ae9927f1b0b..eb8f62339c4 100755
--- a/src/plugins/nat/nat.c
+++ b/src/plugins/nat/nat.c
@@ -2344,7 +2344,6 @@ snat_set_workers (uword * bitmap)
/* *INDENT-ON* */
sm->port_per_thread = (0xffff - 1024) / _vec_len (sm->workers);
- sm->num_snat_thread = _vec_len (sm->workers);
return 0;
}
@@ -2513,7 +2512,6 @@ snat_init (vlib_main_t * vm)
sm->api_main = vlibapi_get_main ();
sm->first_worker_index = 0;
sm->num_workers = 0;
- sm->num_snat_thread = 1;
sm->workers = 0;
sm->port_per_thread = 0xffff - 1024;
sm->fq_in2out_index = ~0;
diff --git a/src/plugins/nat/nat.h b/src/plugins/nat/nat.h
index 31072272293..d0882e07bab 100644
--- a/src/plugins/nat/nat.h
+++ b/src/plugins/nat/nat.h
@@ -529,7 +529,6 @@ typedef struct snat_main_s
snat_get_worker_in2out_function_t *worker_in2out_cb;
snat_get_worker_out2in_function_t *worker_out2in_cb;
u16 port_per_thread;
- u32 num_snat_thread;
/* Per thread data */
snat_main_per_thread_data_t *per_thread_data;