]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: flowtable: fix excessive hw offload attempts after failure
authorFelix Fietkau <nbd@nbd.name>
Mon, 9 May 2022 12:26:13 +0000 (14:26 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 16 May 2022 10:58:55 +0000 (12:58 +0200)
commit909dc495f3b2f989a652022a78fbb5ef313a0652
tree787f0293245afcefe7ae2ec0dadb56499fd421c8
parent6a796d3098e29145b85464aa263e3616cc71512d
netfilter: flowtable: fix excessive hw offload attempts after failure

If a flow cannot be offloaded, the code currently repeatedly tries again as
quickly as possible, which can significantly increase system load.
Fix this by limiting flow timeout update and hardware offload retry to once
per second.

Fixes: cad1732afa56 ("netfilter: flowtable: Remove redundant hw refresh bit")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_core.c