nat: avoid running pointless session cleanups 10/25210/4
authorKlement Sekera <ksekera@cisco.com>
Mon, 17 Feb 2020 13:37:20 +0000 (13:37 +0000)
committerOle Trøan <otroan@employees.org>
Thu, 20 Feb 2020 08:49:28 +0000 (08:49 +0000)
commit8a10c7351b35ab8405c2a9b030dba74a4da28f30
tree561ee5a55a28d641892052f0d789d786edbc9b58
parent855938073f4f0c377488652f4204d3869151b010
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>
src/plugins/nat/nat.c
src/plugins/nat/nat.h
src/plugins/nat/nat44/inlines.h