summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-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;