]> git.droids-corp.org - dpdk.git/commit
table: improve learner table timers
authorCristian Dumitrescu <cristian.dumitrescu@intel.com>
Fri, 20 May 2022 22:12:53 +0000 (23:12 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 1 Jun 2022 13:04:46 +0000 (15:04 +0200)
commit8186c0bbc9f6ee76c72a5302b6d19cea6949ffc7
treed4f95874f7379180cc89d497674eacc31071e89b
parent49b3e173c7ddc497726f13aae80f48b21ac27877
table: improve learner table timers

Previously, on lookup hit, the hit key had its timer automatically
rearmed with the same timeout in order to prevent its expiration. Now,
a broader set of actions is available on lookup hit, which has to be
managed explicitly: the key can have its timer rearmed with the same
or with a different timeout, or the key timer can be left unmodified.
The latter option allows the key to expire naturally when the timer
eventually runs out, unless the key is hit again and its timer rearmed
at that point. Needed by the TCP connection tracking state machine.

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/pipeline/rte_swx_pipeline.c
lib/pipeline/rte_swx_pipeline_internal.h
lib/table/rte_swx_table_learner.c
lib/table/rte_swx_table_learner.h
lib/table/version.map