aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/nat.h
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2020-02-17 13:37:20 +0000
committerOle Trøan <otroan@employees.org>2020-02-20 08:49:28 +0000
commit8a10c7351b35ab8405c2a9b030dba74a4da28f30 (patch)
tree561ee5a55a28d641892052f0d789d786edbc9b58 /src/plugins/nat/nat.h
parent855938073f4f0c377488652f4204d3869151b010 (diff)
nat: avoid running pointless session cleanups
Save the next session timeout when sweeping sessions for cleanup so that we can avoid unnecessary runs of the sweeping algorithm. Type: fix Change-Id: I736d00f2dfe242af10f963fbe34b11128f8b0613 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat.h')
-rw-r--r--src/plugins/nat/nat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/nat/nat.h b/src/plugins/nat/nat.h
index 9cde96840f8..fd7ec3b1434 100644
--- a/src/plugins/nat/nat.h
+++ b/src/plugins/nat/nat.h
@@ -516,6 +516,9 @@ typedef struct
/* real thread index */
u32 thread_index;
+
+ /* discovered minimum session timeout time */
+ u64 min_session_timeout;
} snat_main_per_thread_data_t;
struct snat_main_s;