From e73d0a3aab61a4b192fe73165e6cece4a95c107b Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Thu, 22 Dec 2016 02:46:27 -0800 Subject: SNAT: Remove the oldest translation fix (VPP-568) Fixed bug and add test. Change-Id: I60fbec48abd9d9cb86be1bd1cdbb7d16f9f93c3e Signed-off-by: Matus Fabian --- plugins/snat-plugin/snat/in2out.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/snat-plugin/snat/in2out.c') diff --git a/plugins/snat-plugin/snat/in2out.c b/plugins/snat-plugin/snat/in2out.c index d7b647ef14e..c78fdd76631 100644 --- a/plugins/snat-plugin/snat/in2out.c +++ b/plugins/snat-plugin/snat/in2out.c @@ -203,7 +203,7 @@ static u32 slow_path (snat_main_t *sm, vlib_buffer_t *b0, /* Get the session */ s = pool_elt_at_index (sm->per_thread_data[cpu_index].sessions, session_index); - } while (!snat_is_session_static (s)); + } while (snat_is_session_static (s)); /* Remove in2out, out2in keys */ kv0.key = s->in2out.as_u64; -- cgit 1.2.3-korg