From 85be5d75daa399832d8df770b1a944dab0011c09 Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Tue, 12 May 2020 10:00:34 +0000 Subject: nat: remove unused code Type: improvement Signed-off-by: Klement Sekera Change-Id: I95286d6723fd1860bf6bb0e81c474d732ab25121 --- src/plugins/nat/nat.c | 2 -- src/plugins/nat/nat.h | 1 - 2 files changed, 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; -- cgit 1.2.3-korg