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:
1e26143
)
cnat: fix session scanner restart point
00/29100/1
author
Dave Barach
<dave@barachs.net>
Sun, 27 Sep 2020 14:22:43 +0000
(10:22 -0400)
committer
Dave Barach
<dave@barachs.net>
Sun, 27 Sep 2020 14:23:50 +0000
(10:23 -0400)
Restart point saved by caller, do not restart at i=0.
Type: fix
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I36b7570085c4cbe84cea24339ae579e1fc906af8
src/plugins/cnat/cnat_session.c
patch
|
blob
|
history
diff --git
a/src/plugins/cnat/cnat_session.c
b/src/plugins/cnat/cnat_session.c
index
a80e367
..
54554ce
100644
(file)
--- a/
src/plugins/cnat/cnat_session.c
+++ b/
src/plugins/cnat/cnat_session.c
@@
-165,7
+165,7
@@
cnat_session_scan (vlib_main_t * vm, f64 start_time, int i)
if (alloc_arena (h) == 0)
return 0.0;
- for (
i = 0
; i < h->nbuckets; i++)
+ for (
/* caller saves starting point */
; i < h->nbuckets; i++)
{
/* allow no more than 100us without a pause */
if ((vlib_time_now (vm) - start_time) > 10e-5)