diff options
author | Matus Fabian <matfabia@cisco.com> | 2017-10-12 04:17:45 -0700 |
---|---|---|
committer | Matus Fabian <matfabia@cisco.com> | 2017-10-12 04:17:45 -0700 |
commit | ec0452133ac225d8c639ffaa37f9ee63aa99a5d8 (patch) | |
tree | a7390b644ead4e4265d06845bbcc59d48f519d8a | |
parent | cf6c3437109637166b069b56b7be45094ea9f234 (diff) |
NAT: fix delete of sessions for 1:1 NAT if 1 worker (VPP-1023)
Change-Id: I2446c646de7f227f9438dd7ef93a455ba5af0102
Signed-off-by: Matus Fabian <matfabia@cisco.com>
-rw-r--r-- | src/plugins/nat/nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/nat/nat.c b/src/plugins/nat/nat.c index c2f9586ce7d..9bdb0351731 100644 --- a/src/plugins/nat/nat.c +++ b/src/plugins/nat/nat.c @@ -462,7 +462,7 @@ int snat_add_static_mapping(ip4_address_t l_addr, ip4_address_t e_addr, u_key.addr = m->local_addr; u_key.fib_index = m->fib_index; kv.key = u_key.as_u64; - if (sm->num_workers) + if (sm->num_workers > 1) tsm = vec_elt_at_index (sm->per_thread_data, m->worker_index); else tsm = vec_elt_at_index (sm->per_thread_data, sm->num_workers); |