Expire aged flows in normal expiry thread. This fixes the problem, when
a node disconnected from all sources of traffic never purges its cache.
This commit is contained in:
parent
020d3f61d8
commit
d1240630b3
@ -701,7 +701,8 @@ ng_netflow_expire(void *arg)
|
||||
if (used <= CACHELOWAT && !INACTIVE(fle))
|
||||
goto finish;
|
||||
|
||||
if (INACTIVE(fle) && (SMALL(fle) || (used > CACHELOWAT))) {
|
||||
if ((INACTIVE(fle) && (SMALL(fle) || (used > CACHELOWAT))) ||
|
||||
AGED(fle)) {
|
||||
|
||||
/* Detach flow entry from cache */
|
||||
LIST_REMOVE(fle, fle_hash);
|
||||
|
Loading…
Reference in New Issue
Block a user