cnat: fix session scanner restart point
Restart point saved by caller, do not restart at i=0. Type: fix Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I36b7570085c4cbe84cea24339ae579e1fc906af8
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user