nat: fix nat44-ed-in2out fast path next node 43/36643/4
authorJing Peng <jing@meter.com>
Fri, 8 Jul 2022 16:52:01 +0000 (12:52 -0400)
committerMatthew Smith <mgsmith@netgate.com>
Fri, 9 Sep 2022 13:16:08 +0000 (13:16 +0000)
When a session is found expired, the next node of in2out fast path
should be in2out slow path instead of out2in slow path.

Type: fix
Signed-off-by: Jing Peng <jing@meter.com>
Change-Id: If1dd920502089c25b33bea5434823b0496a44499

src/plugins/nat/nat44-ed/nat44_ed_in2out.c

index b0e0784..2d8d96a 100644 (file)
@@ -1193,7 +1193,7 @@ nat44_ed_in2out_fast_path_node_fn_inline (vlib_main_t *vm,
          // session is closed, go slow path
          nat44_ed_free_session_data (sm, s0, thread_index, 0);
          nat_ed_session_delete (sm, s0, thread_index, 1);
-         next[0] = NAT_NEXT_OUT2IN_ED_SLOW_PATH;
+         next[0] = def_slow;
          goto trace0;
        }