summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/netflow/netflow.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph/netflow/netflow.c')
-rw-r--r--sys/netgraph/netflow/netflow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/netflow/netflow.c b/sys/netgraph/netflow/netflow.c
index 27162b7..cc4fbf3 100644
--- a/sys/netgraph/netflow/netflow.c
+++ b/sys/netgraph/netflow/netflow.c
@@ -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);
OpenPOWER on IntegriCloud