diff options
author | Klement Sekera <ksekera@cisco.com> | 2021-03-25 15:39:15 +0100 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2021-05-26 07:38:01 +0000 |
commit | 2de7e96e6f1d657c124f55a75c8d63d6f05803a7 (patch) | |
tree | 45e0326d1213801396e579e88bcb7ae35fee9ace /src/plugins/nat/nat44-ed/nat44_ed_in2out.c | |
parent | 5fe9457fa2ac49ca7134b09c6886192c7001335c (diff) |
nat: add thread index assertions
Add extra assertions to debug build.
Type: improvement
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Change-Id: Ib20130365e8f9dbb556fcbb4321dd184c7eff603
Diffstat (limited to 'src/plugins/nat/nat44-ed/nat44_ed_in2out.c')
-rw-r--r-- | src/plugins/nat/nat44-ed/nat44_ed_in2out.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/nat/nat44-ed/nat44_ed_in2out.c b/src/plugins/nat/nat44-ed/nat44_ed_in2out.c index fe5fbac71a7..85cda76db39 100644 --- a/src/plugins/nat/nat44-ed/nat44_ed_in2out.c +++ b/src/plugins/nat/nat44-ed/nat44_ed_in2out.c @@ -1122,6 +1122,8 @@ nat44_ed_in2out_fast_path_node_fn_inline (vlib_main_t *vm, skip_lookup: + ASSERT (thread_index == s0->thread_index); + if (PREDICT_FALSE (per_vrf_sessions_is_expired (s0, thread_index))) { // session is closed, go slow path |