summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2020-05-04 12:31:24 +0000
committerOle Trøan <otroan@employees.org>2020-05-05 06:44:40 +0000
commit5ec6a4ea4440211e468a813ffe0f3173421c9b29 (patch)
treed861e489ddb25f54ac83dae1570cb9201fc4b517 /src/plugins
parentbdfe5955f59a735fd8d70e9026f8c1867a4c8cc6 (diff)
nat: remove unused code
Type: refactor Signed-off-by: Klement Sekera <ksekera@cisco.com> Change-Id: I33b2b38961b200dc3297b82124a7107b9ecbd0de
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/nat/nat44/inlines.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/plugins/nat/nat44/inlines.h b/src/plugins/nat/nat44/inlines.h
index 5cd4164acc8..229daa2425e 100644
--- a/src/plugins/nat/nat44/inlines.h
+++ b/src/plugins/nat/nat44/inlines.h
@@ -77,33 +77,6 @@ nat44_global_lru_insert (snat_main_per_thread_data_t * tsm,
s->last_lru_update = now;
}
-static_always_inline snat_session_t *
-nat44_session_alloc_new (snat_main_per_thread_data_t * tsm, snat_user_t * u,
- f64 now)
-{
- snat_session_t *s;
- dlist_elt_t *per_user_translation_list_elt;
-
- pool_get (tsm->sessions, s);
- clib_memset (s, 0, sizeof (*s));
- /* Create list elts */
- pool_get (tsm->list_pool, per_user_translation_list_elt);
- clib_dlist_init (tsm->list_pool,
- per_user_translation_list_elt - tsm->list_pool);
-
- per_user_translation_list_elt->value = s - tsm->sessions;
- s->per_user_index = per_user_translation_list_elt - tsm->list_pool;
- s->per_user_list_head_index = u->sessions_per_user_list_head_index;
-
- clib_dlist_addtail (tsm->list_pool,
- s->per_user_list_head_index,
- per_user_translation_list_elt - tsm->list_pool);
-
- nat44_global_lru_insert (tsm, s, now);
- s->ha_last_refreshed = now;
- return s;
-}
-
static_always_inline void
nat44_user_del_sessions (snat_user_t * u, u32 thread_index)
{