Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
e3ea797
)
NAT: fix delete of sessions for 1:1 NAT if 1 worker (VPP-1023)
84/8784/2
author
Matus Fabian
<matfabia@cisco.com>
Thu, 12 Oct 2017 11:17:45 +0000
(
04:17
-0700)
committer
Damjan Marion
<dmarion.lists@gmail.com>
Sat, 14 Oct 2017 09:14:59 +0000
(09:14 +0000)
Change-Id: I2446c646de7f227f9438dd7ef93a455ba5af0102
Signed-off-by: Matus Fabian <matfabia@cisco.com>
src/plugins/nat/nat.c
patch
|
blob
|
history
diff --git
a/src/plugins/nat/nat.c
b/src/plugins/nat/nat.c
index
8b4f50c
..
887fab7
100644
(file)
--- a/
src/plugins/nat/nat.c
+++ b/
src/plugins/nat/nat.c
@@
-470,7
+470,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);