]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: flowtable: Make sure GC works periodically in idle system
authorYinjun Zhang <yinjun.zhang@corigine.com>
Wed, 17 Mar 2021 12:42:24 +0000 (13:42 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 17 Mar 2021 23:32:21 +0000 (00:32 +0100)
commitacc941668242a49aa64bd39ea184c3a84f88772d
treeb50fd97c7d70245ac55a4ef5bce30efb81fdaa48
parent444b4c0eeab9020f85c62f7dbd94004f7ddda2ce
netfilter: flowtable: Make sure GC works periodically in idle system

Currently flowtable's GC work is initialized as deferrable, which
means GC cannot work on time when system is idle. So the hardware
offloaded flow may be deleted for timeout, since its used time is
not timely updated.

Resolve it by initializing the GC work as delayed work instead of
deferrable.

Fixes: 3029814930c4 ("netfilter: nf_flow_table: hardware offload support")
Signed-off-by: Yinjun Zhang <yinjun.zhang@corigine.com>
Signed-off-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_core.c